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>
A real world example for the Routing and Matrix API can be found here.
Apache License 2.0
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.
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.
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