hrm... thanks for the link...

I just checked it out and it seems like it would help for a javascript
implementation, since it uses the abstracted ElevationService...

But still wondering what's going on behind the scenes with the http
request so I could construct my own post request from python.

does that make sense?  should I try sniffing the request from the
javascript api to see what the request looks like?

thanks for any add'l pointers.

w

On Jul 27, 1:45 pm, Grok Lobster <[email protected]> wrote:
> Have you seen this example
>
> http://googlegeodevelopers.blogspot.com/2010/03/aint-no-mountain-high...
>
> On Jul 27, 10:44 am, wcrtr <[email protected]> wrote:
>
>
>
> > 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