Generate random route automatically

153 views
Skip to first unread message

Павел Балов

unread,
Sep 4, 2022, 7:09:53 AM9/4/22
to OSM Android bikerouting
 Hi! Could you help me with a question? I am trying to understand how can i use brouter via API to generate gpx-tracks, when i provide gps-coordinates of the star point and a radius of area in which i want track to end?

I am trying to solve a problem when a athlete wants to run a auto-generated route and give me his gps-coordinates and wanted lenght of the route. I am trying to build a service which can generate such routes based on Brouter data

Poutnik Fornntp

unread,
Sep 4, 2022, 8:08:53 AM9/4/22
to Павел Балов, OSM Android bikerouting
You would have to be able to generate route points snapped to the OSM way network.

AFAIK, Menion as LocusMap developer created an experimental feature of some semi-manual generation of round trip for given distance.

You may try your luck by consulting it at https://forum.locusmap.eu

Dne 4. září 2022 13:09:55 Павел Балов <wallr...@gmail.com> napsal:

 Hi! Could you help me with a question? I am trying to understand how can i use brouter via API to generate gpx-tracks, when i provide gps-coordinates of the star point and a radius of area in which i want track to end?

I am trying to solve a problem when a athlete wants to run a auto-generated route and give me his gps-coordinates and wanted lenght of the route. I am trying to build a service which can generate such routes based on Brouter data

--
You received this message because you are subscribed to the Google Groups "OSM Android bikerouting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osm-android-biker...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osm-android-bikerouting/882767b0-1561-43a7-9274-b3226933b78fn%40googlegroups.com.

Jiří Mlavec

unread,
Sep 5, 2022, 2:46:07 AM9/5/22
to OSM Android bikerouting
Hi guys, 
I have to correct what Poutník wrote > this is something we also would like to do, but we didn't. 
What the Locus Map app does is using the online GraphHopper service for the "Circle random route generator", not the offline BRouter.

Jiří M. aka Menion

Poutnik Fornntp

unread,
Sep 5, 2022, 4:22:31 AM9/5/22
to Jiří Mlavec, OSM Android bikerouting
Ahoj Jirko,

I see, my memory does not get any better. :-)
Sorry, Pavel, for misinforming.

po 5. 9. 2022 v 8:46 odesílatel Jiří Mlavec <jiri....@gmail.com> napsal:

Poutnik Fornntp

unread,
Sep 5, 2022, 4:30:28 AM9/5/22
to Павел Балов, OSM Android bikerouting
Until such a nice feature is implemented, I do it manually in the LocusMap route planner.

I choose the turning route point about 1/4 - 1/3 of the total desired distance from the start/destination
and then I choose 1 or more route points for each forward and return section for tuning the route distance.

ne 4. 9. 2022 v 13:09 odesílatel Павел Балов <wallr...@gmail.com> napsal:
 Hi! Could you help me with a question? I am trying to understand how can i use brouter via API to generate gpx-tracks, when i provide gps-coordinates of the star point and a radius of area in which i want track to end?

I am trying to solve a problem when a athlete wants to run a auto-generated route and give me his gps-coordinates and wanted lenght of the route. I am trying to build a service which can generate such routes based on Brouter data

--

Norbert Renner

unread,
Sep 7, 2022, 5:50:06 AM9/7/22
to OSM Android bikerouting
Reply all
Reply to author
Forward
0 new messages