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?
Choose or create a project, enable billing, and enable the Directions API. See Set up in the Cloud Console. Create and restrict an API key, and add it to your code. See Use an API Key.
The Directions API uses a pay-as-you-go pricing model. Directions API requests generate calls to one of two SKUs depending on the type of request: basic or advanced. Along with the overall Google Terms of Use, there are usage limits specific to the Directions API.
Stay organized with collections Save and categorize content based on your preferences. This demo shows you how to use the Directions API to get a set of driving directions from one location to another. You may run this demo at no charge.
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,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With