http://107.180.68.111:84/ZIGAPICleveland/api/Trip/GetAllShapes?Page=0
this is the api i got and how do i draw a polyline for this?
http://107.180.68.111:84/ZIGAPICleveland/api/Trip/GetAllShapes?Page=0
this is the api i got and how do i draw a polyline for this?
here is the code, first get an ArrayList of coordinates from the above link using JSON parser then use this code
PolylineOptions polylineOptions = new PolylineOptions().
geodesic(true).
color(Color.BLUE).
width(10);
for (int i = 0; i < coordinates.size(); i++)
polylineOptions.add(coordinates.get(i));
mMap.addPolyline(polylineOptions);
here coordinates is the arraylist of location coordinates, mMap is GoogleMap object