0

I'm trying to draw a route using the google maps api, currently I can send the request to the google server and get the full json with the route.

Is there a method that I can implement to draw the route in the map using this json?

Also, is there an object in the api that can be instantiated with the route obtained from the json?

Deividi Cavarzan
  • 10,034
  • 13
  • 66
  • 80
Cristian Cam G
  • 362
  • 1
  • 3
  • 19
  • 1
    You need to decode the base64 encoded points, and draw the polyline, see here: http://stackoverflow.com/a/32940175/4409409 – Daniel Nugent Nov 24 '15 at 18:36
  • Take a look at this tutorial for a better insight http://wptrafficanalyzer.in/blog/drawing-driving-route-directions-between-two-locations-using-google-directions-in-google-map-android-api-v2/ – AniV Dec 02 '15 at 00:16

0 Answers0