How to get the GPS points of a polyline .

55 views
Skip to first unread message

GerarCR

unread,
Jan 29, 2012, 3:28:05 PM1/29/12
to google-map...@googlegroups.com
Hello

I'm doing an Android application, and i need it to ask for a route to Google Maps (indicating start and destiny points), and obtain the points (lat,long) of the route (corners, etc).
I'd figured out how to do it using Javascript, but the problem is that Google returns a polyline with those points encripted.

Anyone knows how to obtain those points using the Javascript API or the com.google.android.maps library?

Thanks everyone and sorry for my english.

Chris Broadfoot

unread,
Jan 29, 2012, 8:21:05 PM1/29/12
to google-map...@googlegroups.com
I'm confused - are you using the JavaScript Maps API to display a map, or Android MapView?

If the former, look at the "encoding" library.

If the latter, then use the Directions Web Service:


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/qI7o7yEU48MJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply all
Reply to author
Forward
0 new messages