0

I have 2 coordinates (one of source and one of destination) , both of which keep changing every 5 seconds. I want to display path between these two points in android.

I saw this and this. The first one appeared to be easy,because small code :). But it was using javascript. The second one however is for android and is quite intimidating for a begginer like me (Also it has not been edited for quite some time).

Is there an easier way?

Community
  • 1
  • 1
humble
  • 2,016
  • 4
  • 27
  • 36

1 Answers1

0

For routing between two coordinates you need to use online Apis. There is no Offline method.

Here is the Api :

http://maps.googleapis.com/maps/api/directions/json?language=fa&units=metric&mode=driving&origin=52.381215,4.9880833&destination=52.345784,4.832558

it return you the json data and its to you to show the route on map.

language : its for the language of step by step routing origin : source point destination : destination point

Omid Heshmatinia
  • 5,089
  • 2
  • 35
  • 50