0

I am developing a tracking app that I will get the coordinates from an api. I want to draw lines between the coordinates. How could I achieve this?

elixenide
  • 42,388
  • 14
  • 70
  • 93

1 Answers1

0

It is well defined in the android developers;

GoogleMap map;
// ... get a map.
// Add a thin red line from London to New York.
Polyline line = map.addPolyline(new PolylineOptions()
    .add(new LatLng(51.5, -0.1), new LatLng(40.7, -74.0))
    .width(5)
    .color(Color.RED));

And, see also

kelalaka
  • 4,046
  • 4
  • 22
  • 39