GraphHopper.com | Forum | GitHub | Maps | Blog

Restrict route building result to one country. Missing feature?


#1

Hi there. Is it possible to restrict route building response result to a route (or routes) within one country? Sometimes we don’t need a shortest route, but a route within a country’s borders. Let me give you just one example. When using Google Directions API and building a route in Russia, we get a route that is strictly within this country’s borders, whereas the result that we got from Graphhopper Route Building API for the same itinerary can contain some route segments in, say, China, and this is what we’d like to avoid or to have control over.


#2

Unfortunately this is not yet possible in the public API (we are working on it but likely this won’t happen this year).

There are customers with a dedicated installation where this is possible though. For further information please contact our support.