GraphHopper.com | Forum | GitHub | Maps | Blog

Cannot find point 1


#1

I have the same problem with graphs generated from osm data, in this website seems there is the same problem, for example
https://graphhopper.com/maps/?point=35.734994%2C51.402969&point=36.058721%2C51.526794&locale=de-DE&vehicle=car&weighting=fastest&elevation=true&use_miles=false&layer=Omniscale

what is the best way to insure that we can have at least one possible route?is it even possible?


#2

If there is no road network near the location that you requested (like it is the case for the destination, see via zooming in) we cannot do much about it.


#3

Is not there any way to find the nearest point to the distanation? using some kind of functions as st_distance which we can find nearest point to our distanation point and calculate route using the new point?


#4

Ah, sure. You can increase the maximum allowed snapping distance. Try increasing index.max_region_search to e.g. 8


#5

Thanks very much, but is this option available for the mobile version?
thanks


#6

Yes