When I try this for a location that is very far from my road network I get an IllegalStateException:
java.lang.IllegalStateException: Calculate snapped point before!
How can I ensure that findClosest(..) always returns a point? I have looked around and got stuck somewhere in findClosest(..) in the LocationIndexTree.java
I was thinking of the case where my map is some city but the snap request could be anywhere in the world. I would like GH to snap to the closest road even if it is very far away.
Not the importing, but it can affect the query time. More specifically there can be single requests that will be very slow (when no point is found quickly). Generally it is very hard to tune these parameters for large maps that include very dense cities as well as sparse country areas, so use with care.