7

Possible Duplicate:
android get and parse Google Directions

There are lat & lng between points tag ,how to parse? enter image description here

Community
  • 1
  • 1
Rafer
  • 1,170
  • 2
  • 10
  • 15
  • 1
    In Javascript I use this [function to decode Polyline](http://facstaff.unca.edu/mcmcclur/googlemaps/encodepolyline/decode.js)s in my Node.JS program. – josebetomex Jan 24 '12 at 16:01
  • 1
    if you got this encoded string on server side. [here](http://www.codeproject.com/Tips/312248/Google-Maps-Direction-API-V3-Polyline-Decoder) is decoder in C# – Saboor Awan Jan 24 '12 at 16:14

1 Answers1

2

Apparently the Java code in the answer at android get and parse Google Directions (which was in turn taken from here) will do the trick.

Community
  • 1
  • 1
Trott
  • 66,479
  • 23
  • 173
  • 212
  • A bit puzzled as to why this example is in Java and not Javascript – Michael Feb 07 '13 at 21:20
  • It's in Java because the [Google Directions API](https://developers.google.com/maps/documentation/directions/) is not a JavaScript API. If one is using it as part of (for example) an Android app, one will tend to write the code interacting with it in Java. – Trott Feb 07 '13 at 21:51