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
  • 43,445
  • 14
  • 72
  • 97

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,611
  • 5
  • 25
  • 40