You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
I am trying to get route-annotator to work for retrieving tags for an OSRM route, as advertised by @danpat. I am starting with the code example from README.md, with fixes as proposed by @StephanGeorg. However, I always only get back a way ID, no further tags.
For example, when using the test/data/monaco.extract.osm file, I try to retrieve this information, using the nodes as starting point:
The wayIds shown are [ 4, 4, 4 ], instead of [4227277] or maybe [4227277, 4227277, 4227277] which I would have expected. I plow ahead nonetheless and try to retrieve/show the tags:
It occured to me that I at least get from the Nodes to the way id, so I can use the way id (returned in tags, not in wayIds!) and call the overpass API: https://lz4.overpass-api.de/api/interpreter?data=[out:json];way(4227277);out;
returns (among other things)
"tags": {
"highway": "primary",
"lanes": "2",
"lit": "yes",
"maxspeed": "50",
"name": "Rue de la Colle",
"oneway": "yes",
"sidewalk": "left",
"smoothness": "excellent",
"surface": "asphalt",
"turn:lanes": "left|through"
}
i.e. exactly what I would have expected from the call to getAllTagsForWayId.
--> I will try this as a workaround for now, but I am still puzzled.
Hey @JonasHeidelberg. Yes, this was also my solution, not with Overpass but to query osm_id in a OSM DB. But honestly I stopped my investigation b/c of #64. If you want we can share some experiences about this: https://twitter.com/StephanGeorg
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to get route-annotator to work for retrieving tags for an OSRM route, as advertised by @danpat. I am starting with the code example from README.md, with fixes as proposed by @StephanGeorg. However, I always only get back a way ID, no further tags.
For example, when using the test/data/monaco.extract.osm file, I try to retrieve this information, using the nodes as starting point:
I start node.js manually and type:
Once I see the Success message, I launch this code (with the 4 nodes from above):
The wayIds shown are [ 4, 4, 4 ], instead of [4227277] or maybe [4227277, 4227277, 4227277] which I would have expected. I plow ahead nonetheless and try to retrieve/show the tags:
which gives me a mere
{ _way_id: '4227277' }
I am a bit lost here... what am I doing wrong? I would have expected something like
{highway:'primary', lanes:2, lit: 'yes', maxspeed:50
?The text was updated successfully, but these errors were encountered: