Hiya, are you talking about essentially snapping the point to roadside?
I have faced that quite a bit with our national address database. It is most prevalent when the central land package location was closest to the highway, instead of the residential road (our database stores GEOM’s at the center of the land package)
The solution was to use Oracle SQL (SDO.GEOM) to essentially snap the point to roadside. This involved using the GEOM data to access the associated road segment (not the closest) and move the point 10m from the center line.
I’m unsure if you have that level of data, but when I was working on this I was unsure of the functionality within graphhopper. I think you would still need the association between the point on the map and the actual road to use.
PostGIS contains a function called ST_Translate
From : https://spatialdbadvisor.com/oracle_spatial_tips_tricks/90/st_translate-for-oracle-aka-move
/* Move a point 1 degree longitude */
/* PostGIS */
SELECT ST_AsText(ST_Translate(ST_GeomFromText('POINT(-71.01 42.37)',4326),1,0)) As wgs_transgeomtxt;
You would still need to know which direction to move in.
Hope that is some help?