Is there a HTTP request for "road snapping"?

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?

Currently there is no separate endpoint for this but you can use the Routing API with two identical points.