I am working on adding some private roads to the OSM road network. I have tried a few different approaches but always seem to get a 404 error from the API stating that their is no routable point within 400m of the coordinate when I request directions that require these private roads. routes that don’t need these custom roads seem to work just fine.
I have looked around on this forum for others having issues adding custom roads and found a few helpful points, such as ensuring all IDs are positive and ensuring custom roads have a highway tag.
I am running a local instance of the API and only using the default “car” profile.
To generate the OSM file with custom roads I have been using Osmium and JOSM. I downloaded a base OSM map. Using Osmium, I subset the initial OSM file to a small area for testing and subset it to only include objects with the highway tag to keep things as simple as possible. using JOSM, I converted a shape file of the private roads I am trying to add to an OSM format keeping only a highway tag that I constructed. I then merge these files and renumber the ids (such that they start at 1) using Osmium. Finally I use the JOSM-validator tool to correct any issues (such as duplicate nodes)
I’m not sure why the newly added roads are apparently not routable when using ORS, any insights or suggestions would be greatly appreciated.
Happy to provide more detail on my approach or ORS config as needed.