Skip to content

Latest commit

 

History

History
 
 

client-hc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Handcrafted Java and Android client for the GraphHopper Directions API

We have a hand-crafted API client (client-hc) for several API parts like the Matrix and Routing API that is more memory efficient e.g. for large matrices than the autogenerated client. To use this project include the following Maven snippet:

<dependency>
  <groupId>com.graphhopper</groupId>
  <artifactId>directions-api-client-hc</artifactId>
  <version>[CURRENT-VERSION]</version>
</dependency>

Usage

A real world example for the Routing and Matrix API can be found here.

License

Apache License 2.0

Usage

You can use the API client for many API parts:

  • the Geocoding API
  • the Route Optimization API
  • the Routing API
  • the Matrix API
  • the Isochrone API

For the Route Optimization API you can create the sources from our OpenAPI spec. See this repository for more details about it.

Android

It is important to use this client not on the main thread of Android as it could block the app. See issue 7 for more information.

Android Alternative

The OSM OSMBonusPack also has an Android client written from the community. It also supports online map tiles. You can see this code in action in Geopaparazzi, OSMNavigator and more