GraphHopper Navigation Web Service

Build Status

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.

Integration with your Dropwizard application

  1. Create your dropwizard application
  2. Add this project to your project e.g. via maven:
    <dependency>
    <groupId>com.graphhopper</groupId>
    <artifactId>graphhopper-navigation</artifactId>
    <version>SOME_VERSION</version>
    </dependency>
  3. Create a dropwizard "Application" class that adds the GraphHopperBundle. See this MapMatchingApplication class as an example.
  4. 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.

Community-Driven Alternatives

maphopper: https://github.com/Gadda27/maphopper