> 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 documentation http://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.
