15

While I was going through this blog, I got confused about using the Directions API on android. Is it possible to integrate the Directions API on the Map? To make it more clear, I am working on an application that would take in inputs from the users for things like source and destinations ... taking these inputs I would like to display an appropriate map having both the walking and driving directions depicted. Is just a JSON parser (or XML) enough to support this wish of mine, along with a canvas to draw on ... or will I have to create my own API to get this done?

holiday11
  • 179
  • 1
  • 1
  • 7

1 Answers1

8

Yes it is possible to intergrate direcitons api with map. There is no need to write your own API. You can achieve this very easily. With Google android api V2 there is no need to draw canvas. Adding things in it is very easy.

Please read here for Google Maps https://developers.google.com/maps/documentation/android/start

and for directions

https://developers.google.com/maps/documentation/directions/

During the process you have any specific problem then please ask that.

Thanks,

Zeeshan Mirza
  • 4,549
  • 3
  • 22
  • 32
  • 5
    "this service is not designed to respond in real time to user input, for example" https://developers.google.com/maps/documentation/directions/ – cdf Oct 29 '13 at 03:09
  • 9
    Technically you _should_ be creating your own API to proxy requests, because the API key can only be secured using IP address restrictions, which you can't do if it's the devices themselves hitting the API. Without it, someone can easily abuse your API key. – Ben Neill Apr 12 '17 at 03:01