Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/graphhopper/graphhopper-navigation

Provides a GraphHopper web service for navigation apps
https://github.com/graphhopper/graphhopper-navigation

mapbox mapbox-navigation navigation openstreetmap

Last synced: 3 months ago
JSON representation

Provides a GraphHopper web service for navigation apps

Awesome Lists containing this project

README

        

# GraphHopper Navigation Web Service

[![Build Status](https://travis-ci.org/graphhopper/graphhopper-navigation.svg?branch=master)](https://travis-ci.org/graphhopper/graphhopper-navigation)

# Deprecation of this Repository

For the GraphHopper routing engine 2.0 and beyond this navigation endpoint is directly integrated in GraphHopper. See [this issue](https://github.com/graphhopper/graphhopper/pull/2081).

# Introduction

This web service returns JSON from the [GraphHopper routing engine](https://github.com/graphhopper/graphhopper) that is consumable with the [Android Navigation SDK](https://github.com/graphhopper/graphhopper-navigation-android). 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](https://github.com/graphhopper/graphhopper-navigation-example).

# Integration with your Dropwizard application

1. Create your dropwizard application
2. Add this project to your project e.g. via maven:
```xml

com.graphhopper
graphhopper-navigation
SOME_VERSION

```
3. Create a dropwizard "Application" class that adds the [GraphHopperBundle](https://github.com/graphhopper/graphhopper/blob/1.0-pre38/web-bundle/src/main/java/com/graphhopper/http/GraphHopperBundle.java). See this [MapMatchingApplication](https://github.com/graphhopper/map-matching/blob/1.0-pre38/matching-web/src/main/java/com/graphhopper/matching/http/MapMatchingApplication.java) 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