I am trying to render combination wall and fence barrier around a cemetery so that directions supplied to a specific lat/long combination of a grave will be directed inside the cemetery on existing paths/roads. When the grave is closer to an outside road, directions given take the user to the closest place on the external road and expect the person can access the location walking from the road. In many cases this is not the case - a significant wall or fence exists that cannot be "crossed". Other times, the road is very unsafe to park on (high speed or no shoulder) and the person should be directed inside the cemetery for access. I have tried creating a barrier around most of a cemetery (Cypress Lawn Memorial Park in Colma CA) and I cannot see that rendered after 3 days (http://product.itoworld.com/map/49?lon=-122.45707&lat=37.67196&zoom=15) while I can see a barrier not far away behind a Home Depot store (to the northwest of the cemetery). Secondly, when trying directions to other nearby places with fences, the behavior doesn't seem to do what I am trying anyway. The goal is that a person is directed to enter the cemetery main entrance and the use the internal roads to get to the closest spot to the lat/long and walk the remaining distance. asked 11 Jul '17, 18:39 Ken Oates |
The "sane" solution is to implement routing on areas (which could then take barriers etc in to account), this is not the highest priority with the routing engine developers, but it is an known issue. The stop gap measure is to add fake paths, but that is not particularly satisfactory. PS: this is a largish issue for indoor routing too. answered 11 Jul '17, 22:58 SimonPoole ♦ Thank you everyone for the suggestions. Agreed the best solution would be to have the routing engine take info consideration barriers, etc. that exist between the closest road/path and the destination lat/long. I put in my vote to put this on the priority list. The not so great practical solution of building "false" paths to cause the routing engine to produce the desired result is what I have chosen to do. The goal would be that when barriers are taken into consideration, these false paths will be removed.
(19 Jul '17, 21:31)
Ken Oates
|
I don't understand the problem. If the roads inside the cemetary are properly mapped then routing engines should work as expected, e.g. in this case: http://www.openstreetmap.org/directions?engine=graphhopper_car&route=37.6659%2C-122.4561%3B37.6680%2C-122.4588
Presumably routes like http://www.openstreetmap.org/directions?engine=graphhopper_car&route=37.66590%2C-122.45610%3B37.66701%2C-122.45955#map=17/37.66615/-122.45796 are the issue.
The general purpose routing engines on OSM.org won't account for a barrier or wall that isn't connected to a highway that is a possible route. They tend to be car focused on don't focus on pedestrian convenience at the end of the route.
Such questions also come up when routing to a school or something like that where there is no established way to hint where in the school grounds would be the best place to stop a vehicle.
Yes, maxerickson has the problem nailed. Here is more clarification, but probably isn't necessary at this point.
The first image is the type of routing I am looking for. The user is at the entrance of the cemetery and the red point is where the grave is. It routes correctly through the cemetery because the destination lat/long is closer to the internal road than the external one (Collins Avenue) https://www.openstreetmap.org/directions?engine=graphhopper_foot&route=37.67329%2C-122.45447%3B37.67321%2C-122.45735#map=17/37.67294/-122.45423
If the grave location is moved just slightly closer to the edge of the cemetery, the person is routed outside to Collins Drive. There are businesses on Collins between the road and the cemetery as well as a high concrete wall separating the back of the businesses from the cemetery. There is no way to get from Collins to the cemetery. https://www.openstreetmap.org/directions?engine=graphhopper_foot&route=37.67329%2C-122.45447%3B37.67332%2C-122.45734#map=18/37.67399/-122.45613
So, does anyone have a some solution suggestions? Thanks!
perhaps you could add the path ? It seems to me that there is a path in that corner of the cemetery. A general purpose router will bring you as close as possible over the existing paths, it does not know about walls around the area.