Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

graphhopper/graphhopper-navigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphHopper Navigation Web Service

Build Status

Deprecation of this Repository

For the GraphHopper routing engine 2.0 and beyond this navigation endpoint is directly integrated in GraphHopper. See this issue.

Introduction

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>
  1. Create a dropwizard "Application" class that adds the GraphHopperBundle. See this MapMatchingApplication class as an example.
  2. 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