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

API clients for various languages for the GraphHopper Directions API

License

Notifications You must be signed in to change notification settings

graphhopper/directions-api-clients

Repository files navigation

Deprecated Notice

The sources in this repository are outdated. Instead create fresh sources from within the browser (click on 'Generate Client') or via docker where more languages like ruby are possible:

docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \
    -i https://docs.graphhopper.com/openapi.json
    -g go \
    -o /local/out/go

To improve the naming of the classes you can do the following:

curl https://docs.graphhopper.com/openapi.yaml | sed -e 's/Matrix API/Matrix/g' | sed -e 's/Routing API/Routing/g' | sed -e 's/Geocoding API/Geocoding/g' | sed -e 's/Route Optimization API/Route Optimization/g' | sed -e 's/Map Matching API/Map Matching/g' | sed -e 's/Isochrone API/Isochrone/g' > openapi.yaml

Old Readme

See old readme.