graphhopper / directions-api-clients

API clients for various languages for the GraphHopper Directions API
https://docs.graphhopper.com/
Apache License 2.0
30 stars 39 forks source link
api api-client directions swagger

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.