I was able to find the answer after again reviewing the API
documentation.
One of the examples did not work with the samples=x parameter. Changed
the location parameter to path and all worked.



On Dec 17, 12:46 pm, Buster <[email protected]> wrote:
> Is it possible to use an HTTP request to retrieve an array or encoded
> polylines containing lat/lon/elevation between two or more points?
>
> Similar in concept to the V3 API JS example:
>
>  elevator = new google.maps.ElevationService();
>   var path = [ whitney, lonepine, owenslake, panamintsprings,
> beattyjunction, badwater];
>
>   // Create a PathElevationRequest object using this array.
>   // Ask for 256 samples along that path.
>   var pathRequest = {
>     'path': path,
>     'samples': 256
>   }
>
>   // Initiate the path request.
>   elevator.getElevationAlongPath(pathRequest, plotElevation);
>
> }
>
> if so, what is the http request format?
>
> Thanks in advance.

-- 
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