Hi,

I'm trying to get the elevation of a number of points from the
Elevation API.

Since I'm trying to get the elevation for about 200-300 points at one
time, doing a normal GET request seems silly, and becomes too long at
a certain point.

However, there are no POST examples on the website, and if I try to do
something like:

data = {'sensor': 'false', 'path': '40.714728,-73.998672|34,-118',
'samples': 2}
encoded =  urllib.urlencode(data)
response = urllib.urlopen('http://maps.google.com/maps/api/elevation/
json', encoded)
print response.read()

I'm just getting a bad request response.  If I do the same request,
but with a GET vs. a POST

response = urllib.urlopen('http://maps.google.com/maps/api/elevation/
json?%s' % encoded)

then it returns the json no problem...

Any trick to doing a POST to the service?

thanks for any reply,
w

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en.

Reply via email to