Hmmm, Ok here is the order of events, as I understand you are
proposing ...

1.  User requests itinerary in the Google Maps UI
2.  Upon receipt of the itinerary, the client code POSTs a request to
the server with the corresponding data
3.  Server does "its thing", creating a file on the server and returns
the kml file path and name to the client.
4.  Client code then creates the KmlObject overlay, passing the kml
file name recuperated from step 3

Have I understood correctly ?

On Jul 30, 3:11 pm, Rossko <[email protected]> wrote:
> >     My server and obviously it will except POST.
> >     However, to load a KML file, I can but pass the URL of the KML
> > file or (I presume) the page which will generate the file.
> >     This limits the call to GET only.
>
> Still confused ; seems like you want to pass a bunch of data from your
> client script to your server script using POST.  Can't see an obstacle
> to that.  Then your server script uses it to generate KML. So long as
> you store the KML (or the required data to create it on the fly) then
> it is accessible by simple URL, which you can call as a kmlLayer from
> the client map.
>
> >      I have not seen how to create the KmlLayer object by passing it
> > the content of the KML file.
>
> You can't.
> It is possible to use an alternative client-side KML parser to do
> that, you are not obliged to use kmlLayer.
> You're not obliged to use KML at all rather than just rendering your
> custom data, but presumably you have a reason.
>
> >     My question was rather, does there exist an API for calling the
> > Directions Service directly from my server, after having obtained the
> > start, end and eventual waypoints ?
>
> Sure, see the 
> documentationhttp://code.google.com/apis/maps/documentation/directions/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to