Hi all.

I'm using Google Maps API 2

I'm using Google maps to plot an encoded polyline on a map returned
from the directions service. (var polyline = directions.getPolyline())

I need to retrieve the encoded polyline string from the polyline
object returned by the direction service so I can pass it to Google's
elevation service to plot a elevation diagram using Google's chart
api. (thanks Google!)

Previously, I could get the encoded polyline string by using the
undocumented API:

polyline.da.points

but this has changed recently to:

polyline.ia.points

Of course, I realise its my own fault for using an undocumented API!

Is there an official (ie. not likely to change) way to get the encoded
polyline string from a polyline object?

If not, do you suggest that I fetch the points using
polyline.getVertex() and then re-encode the points ready for passing
to the elevation API? Seems a bit silly to have to do this though...

Thanks in advance :-)

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