Determine shortest distance from point to nearest path (Java)

22 views
Skip to first unread message

J Houer

unread,
May 13, 2024, 11:59:40 PMMay 13
to OSM Android bikerouting
Hi, 
After using Graphhopper many years, I want to switch to Brouter. Being a newbie with brouter, can you help me finding a piece of Java code that determines the shortest distance between a point and the nearest path? 

The code I will be using in a personal Android (walking/geocaching) app. 

So, something: 
- read the config (in order to be able to work with even footpaths)
- get access to a RD5 file
- any Java method(s) for determining the shortest distance from point to nearest path. 

I hope you can give me that headstart. 
Kind regards, Johan

A. Fischer

unread,
May 15, 2024, 3:56:36 AMMay 15
to OSM Android bikerouting

BRouter works as a service for other apps.
Please have a look at the aidl interface
and the docs
ToDo: fill a bundle with your parameters, call BRouter service with it and live with the result.
Reply all
Reply to author
Forward
0 new messages