Thinking about how to visualize the direction of a way in mapcontrib or umap instance using an Overpass query: it might be done by querying the second node of a way. If you overlay that node on the way itself, it can show you where it begins. Maybe again for the second-last. (Not the first and last nodes, because they would often overlap with the nodes of an adjacent way) Say I want to show the direction of highways that don't have a oneway tag in this way, how would I go from this basic query?
If you have a better idea to approach the problem, do go ahead. asked 10 Feb '17, 07:49 joost schouppe |
The optimal solution for this would be to make the displaying software (here: umap) render the direction of the lines for one.
The Overpass API doesn't (yet?) support nth-child queries for way-nodes (or relation members). But you could do this in post-processing: After converting the Overpass result to GeoJSON, run something like the following (in nodejs):
After that, there are additional point features in the answered 23 Feb '17, 16:24 tyr_asd Thanks for the help!
(24 Feb '17, 07:48)
joost schouppe
|