I am currently using the following java code for “road snapping”, i.e. finding the closest point on a road for a given location:
double latitude = 52.5;
double longitude = 13.4;
QueryResult queryResult = graphhopper.getLocationIndex().findClosest(latitude, longitude, EdgeFilter.ALL_EDGES);
Am I lucky and there is an equivalent http request to retrieve such a query result?