Thursday, May 6, 2010

How to specify callback function for Google Elevation Service JSON requests?

Hi all,
I'm trying to use the Google Elevation Service in my V2 Google Maps
API using JavaScript and having a hard time. My latest attempt was
using jQuery's .getJSON function (http://api.jquery.com/
jQuery.getJSON/). However, I cannot find out how to specify a callback
function to the elevation service for processing the results.
Normally, you would add something like a "&callback=?" parameter to
the request URL. Since no such parameter is advertised in the
documentation for the Google Elevation Service, I assume it does not
support "JSONP" (as opposed to just "JSON") requests. Is that true and
are their plans to support this in the future? Ideally, I would like
the ElevationService() object that Google is providing in the V3
Google Maps API, but sadly they have not added this to the V2 API. :(

Thanks for any help on this!
Cheers,
John

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate