osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.67k stars 1.02k forks source link

Calculate routes using the AIDL integration #19594

Open SrMatheus2000 opened 6 months ago

SrMatheus2000 commented 6 months ago

Describe the idea (required)

I would like to use the AIDL integration of OsmAnd to calculate a route between 2 or more latlongs

Tell us about the expected behaviour (required)

Calling the calculate route method on the aidl with 2 or more latlongs should calculate the route between them and return a geojson with the route and the rotogram so i can plot it and navigate in the other app. Also it would be nice to have a way to know if a latlong belongs to that route or not, maybe another method that receives the route and a latlong coordinate and returns a true or false if the latlong is inside the route or not

Tell us about alternatives you've considered (required)

I saw that the AIDL already has a calculate routes method, but it is not well documented, and does not have an example in the sample app. If it already works, i would like to know how to use it.

Context (optional)

No response

vshcherb commented 6 months ago

As for now developers are mostly busy with main functionality of the app itself. API doesn't have many users and provided AS IS, however please feel free to contribute and enhance it.