For the GraphHopper routing engine 2.0 and beyond this navigation endpoint is directly integrated in GraphHopper. See this issue.
This web service returns JSON from the GraphHopper routing engine that is consumable with the Android Navigation SDK. I.e. it provides the server side part of a navigation application.
An example for an Android app that uses the Navigation SDK is provided in this repository.
- Create your dropwizard application
- Add this project to your project e.g. via maven:
<dependency>
<groupId>com.graphhopper</groupId>
<artifactId>graphhopper-navigation</artifactId>
<version>SOME_VERSION</version>
</dependency>
- Create a dropwizard "Application" class that adds the GraphHopperBundle. See this MapMatchingApplication class as an example.
- In the run method of this class call
environment.jersey().register(NavigateResource.class);
Or create your own bundle similar to the mentioned GraphHopperBundle and add the NavigateResource there.
maphopper: https://github.com/Gadda27/maphopper