问题
We are looking for an offline routing and reverse geocoding service.
GraphHopper advertises that its Directions API can be self-hosted:
GraphHopper Directions API Self-Hosting / On-Premises
The Directions API comes as a cloud service where you pay on-demand. The API is also available as on-premises solution (self-hosted), which gives you maximum performance, customization possibilities, independence; all in your hands!
After installing GraphHopper on my local instance as per these instructions, I am able to perform routing queries successfully through the localhost HTTP API.
How do I get reverse geocoding working? I cannot find any documentation on this and the code on GitHub doesn't seem to hint towards anything.
回答1:
The GraphHopper Directions API is a different product than the open source GraphHopper routing engine. The GraphHopper Directions API currently consists of
- the Routing API (based on the GraphHopper routing engine),
- the Matrix API,
- the Geocoding API and
- the Route Optimization API.
Currently they are no longer available for self-hosting. Note: I'm one of the authors.
回答2:
GraphHopper is a routing service, not a geocoder.
According to this issue the Geocoder is separate from GraphHopper and only available in the Directions API for business.
If you are looking for a free OSM-based geocoding service then take a look at search engines in the OSM wiki.
回答3:
I don't think the geocoding comes with the current version. Only the route api seems to be available.
来源:https://stackoverflow.com/questions/33687494/self-hosting-graphhopper-directions-api