NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

How can I safely visualize the route of Bundesautobahn 4 (relation 48147) to the default OSM map (ideally directly at osm.org)? Best way would be to highlight the route the same way like the current relations do. If the relation has no sub-relations then it draws itself nicely (like the A1 - though this relation is missing the north part of A1). But the problem with A4 is that it contains sub-relations with the actual route and these will not highligh anymore (explained here).

Yes I have been told relations are not stable over time, but I found this really is a general rule and some relations are very stable (10+ years) but it probably depends on how the local community treats relations, so they really are not 100 % stable.

So I probably want to run a query for A1 with some tags (network=BAB, ref="A 4"?) and highlight the result on a map. My point in using relations is that they are probably much (computationally) cheaper to retrieve from the server then a query, so I try to use them where possible. I see that the Query-to-map at http://tools.wmflabs.org/query2map which may be what I am looking for is not working (503 Service Unavailable).

I actually want to use the map data (A1 route) to share it on Wikipedia. There is the WIWOSM project that would work but the problem is it is not universal (not enabled on all Wikipedias - rather very few) and the articles need to contain coordinates in order for the WIWOSM link to be showed at the top of the page. And the articles about routes (Autobahns, railway lines etc.) usually do not contain any cooordinate so the WIWOSM link is not shown.

asked 19 May '19, 09:46

Kozuch's gravatar image

Kozuch
1.7k587285
accept rate: 8%

edited 19 May '19, 10:04

1

For the sake of clarity: Relations are actually much more computationally expensive. Queries are just queries on a system optimized to do queries. Relations interact with everything from the main site to editor and tools to track changes and make those systems much more complex.

It is easy to mis-judge the computational effort of a data structure. This is why guessed complexity (any statement that is not backed by a working and to the whole world scaling implementation!) must not play a role when designing tagging models.

(19 May '19, 11:45) Roland Olbricht

I really wonder how a retrieval of items by ID (surely with the help of index) can be more expensive then searching the whole DB by tags? I am speaking about data only and do not consider related queries (visualization on website etc.).

(21 May '19, 13:06) Kozuch

Not sure if this is what you're looking for, but it's visualizing the A4 just as the A1, so I thought to mention it.

The A4 has two parts, the normal A4 and then the west-part of the A4. If somehow you can connect these two into a relation then you can show the whole A4 just like the A1 you mentioned. On the other hand, that might overload the browser (points) so you might have to find a workaround for that.

permanent link

answered 22 May '19, 17:04

tijmenheid's gravatar image

tijmenheid
415511
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×236
×147
×20
×4
×3

question asked: 19 May '19, 09:46

question was seen: 1,774 times

last updated: 22 May '19, 17:04

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum