Display linestring on OsmDroid

256 Views Asked by At

I'm using OsmDroid to display some map features on Android. I have a server that displays routes based on a start and a end point. The server returns the path/route in a list of points:

[(Alat,Along),(Blat,Blong),etc...]

What function, of the OsmDroid API should I use to display the route on the map?

Thanks

1

There are 1 best solutions below

0
On

You can use osmdroid PathOverlay (even if deprecated).

You can also use OSMBonusPack Polyline.

And, depending on which routing service you are using, you could also have a look at OSMBonusPack routing features.