I have just been introduced to GIS and GraphHopper. I am trying to create a route plan for indoors which I can feed to GraphHopper. I am trying to figure out how GraphHopper selects the best route for a point if that point is not on the route. It seems to me (I tried it out on a map I created) it selects the path nearest to the point. What happens if the nearest path is not reachable (say there is a ditch between the point and the path)? In general is there a way to specify that only certain paths may be chosen for a point. In my case, say I am trying to find the shortest path from any point within a room to another room. There are two exits from the room. Any path has to use those two. But the nearest path from the selected point is the one passing near the room just on the other side of the wall. GraphHopper seems to always choose that one because I have not told it about the wall. Is there a way to model this either in GraphHopper? If not, how do I handle it at application level. The way I can think of is to create a layer with all my enclosed areas and their exits and for any point first figure out which area it is in and draw the rout from the exit point of that area. Is that feasible?
Update: Adding a picture (a very badly made map of an office floor) to illustrate the problem. From both marked positions 1 and 2, GH will choose the lines marked in green as they are nearer but the correct paths are the ones marked in blue.