Get gpx file from navigated route via api

39 views
Skip to first unread message

Hannes R

unread,
Jun 9, 2020, 10:19:29 AM6/9/20
to OsmAnd
Hi,
I would like to get the gpx file generated by the navigation algorithm via the API.
My use case (all via API):
- calculate route to point
- get gpx file from route (I want expecially the elevation profile, so something that gets me this is enough)

I need this because I want to know, if my e bike battery can last the route.

However, as I know it is only possible to upload gpx files, not to download them. Is there a way that I don't know?

Bart Eisenberg

unread,
Jun 9, 2020, 2:28:48 PM6/9/20
to OsmAnd
If I understand the intent of your question correctly, you can upload a GPX from My Places > Tracks.  Press on the GPX of interest and then the share icon in the upper right. (I'm not sure what you mean by via the API. Via the OsmAnd application programming interface?) 

Hannes R

unread,
Jun 9, 2020, 2:38:53 PM6/9/20
to OsmAnd
Yes, I mean via the Osmand application programming interface (like used in the api-demo app).
That means, yes, I would like to write an app for that, for which the manual share button isn't suitable.

Everton Hermann

unread,
Jun 9, 2020, 5:10:10 PM6/9/20
to osm...@googlegroups.com
Hello,
I'm new to OSMAnd code, but I'm afraid you will have to ask/develop a new aidl to have access to it from the API.
I think the date you are looking for is at GPXTrackAnalysis
that is used at buildSlopeInfo, for instance:


On Tue, 9 Jun 2020 at 20:38, Hannes R <hannesr...@gmail.com> wrote:
Yes, I mean via the Osmand application programming interface (like used in the api-demo app).
That means, yes, I would like to write an app for that, for which the manual share button isn't suitable.

--
You received this message because you are subscribed to the Google Groups "OsmAnd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osmand/9dbfc65f-8b34-4d07-8796-2d6b759690aao%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages