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
See old readme.