opencaching / opencaching-pl

The source code of Opencaching.PL (and some other domains)
https://opencaching.pl/
GNU General Public License v3.0
22 stars 33 forks source link

Use BRouter as offline router service #1850

Open andrixnet opened 5 years ago

andrixnet commented 5 years ago

BRouter is an offline routing service provider app. The Android app provides this service for OSMAND, ORUX, LOCUS and C:GEO apps (at least) and works quite well.

The app is provided as an Android app as a service and a Java app that can run as a standalone server Windows or Linux. A usage example can be seen in c:geo source code: https://github.com/cgeo/cgeo/tree/master/main/src/cgeo/geocaching/maps/routing

The app is downloadable here: http://brouter.de/brouter/offline.html

kojoty commented 5 years ago

BRouter seems to be quite nice tool - but please explain me how we can integrate it with OC webpage.

andrixnet commented 5 years ago

My routes function is/was depending on Google services to generate a route. BRouter can provide a similar service without the need for external third party. Data files for the entire world are 5GB, can be hosted locally, only for the part of the world that is of interest. (country or region or continent)

kojoty commented 5 years ago

@andrixnet First I don't know much about BRouter but from webpage it seems this is Android app integrated with Android apps - I can't see any information how to link it up with web application in JS/php. Maybe it is possible to wrap Android app or use it in other way (by some hacks or something) but I'm not sure...

Second: have you seen openroute (https://openrouteservice.org/) - there is an API which provides a routing service and I think this is the clear way we can go to restore "myRoutes" service for OC

andrixnet commented 5 years ago

Because they give out a Java version of the backend for such deployments.

I'll also look int openrouteservice.org, thanks.