Getting OSM Node ids from Routes created by Wheelchair profile

Hi, I am not sure if this question has been asked before from other posts but, Would it be possible to retrieve the osm nodeids based on the routing created by the ORS app locally(via docker) or using the live API version of openrouteservice?

My goal is to try and get all the nodes that the router is passing for wheelchair users. The reason for this is so that I can improve or add related tags that will help the routing algorithm choose the best way for wheelchair users.

1 Like

Hey,

you cannot get node ids directly, but you can get way ids for the wheelchair profile by adding

"extra_info":["osmid"]

to your request.

You’ll receive something like

"extras": {
  "osmId": {
    "values": [
      [0, 1, 25814478],
      [1, 2, 696913015],
      …
    ]
  }
}

Have a look here for an explanation on what these values mean.

You should be able to use the overpass-api to get node ids (or tags or whatever else) from that.

Best regards

2 Likes

I see, then I will look into this maybe I can connect all this as a module for my project. Thank you for the direction!

1 Like