Pathfinder finds the shortest route between two GJPoints. It reads OSM data and transforms this to a routable graph. The project aims to be simple and extendable.
You will need an OSM region extract in PBF format.
- Load the project into a code editor
- Get an OSM region extract in PBF format (for example using Geofabrik)
- Store the PBF in the resources folder in the importer module
- Change application.properties: set network.name to the name of the downloaded extract
- Run the api module
- The PBF will be loaded and your routing service will be available at port 8080
- Run a test request: http://localhost:8080/route?fromLat=52.3565&fromLon=5.2812&toLon=5.2892&toLat=52.3576
Just because I can. It's written for fun.