Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/graphhopper/graphhopper-navigation
- Owner: graphhopper
- License: apache-2.0
- Archived: true
- Created: 2018-08-04T18:09:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T10:40:22.000Z (about 4 years ago)
- Last Synced: 2024-09-25T22:33:59.704Z (3 months ago)
- Topics: mapbox, mapbox-navigation, navigation, openstreetmap
- Language: Java
- Homepage: https://www.graphhopper.com/open-source/
- Size: 1.39 MB
- Stars: 27
- Watchers: 8
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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