Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Directions API on Android

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?

like image 354
holiday11 Avatar asked Mar 20 '13 06:03

holiday11


People also ask

How do I use Google directions API on Android?

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.

Is direction API free Google?

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.

Can I use direction API for free?

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.


1 Answers

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,

like image 129
Zeeshan Mirza Avatar answered Sep 26 '22 02:09

Zeeshan Mirza