Hi! I found some links like:
which mark a part of a street. So I was wondering how to mark the whole street or maybe several streets and I found in the wiki: Get way by ID - which describes what I get from the above url, because when it is entered in the browser it's rewritten by the server to
I looked further and found Get ways describing the url as being
But I couldn't figure out how to apply this to "my" street which would be
Unfortunately this did not work as expected. Is there another way to get this accomplished? There is alsready a kind soul in Germany who set up a server which allows this (plus more), but I'd also like to know how this would be possible directly on openstreetmaps. asked 19 Dec '14, 09:45 5keeve
showing 5 of 7
show 2 more comments
|
I guess this isn't possible as currently osm.org has just permalinks to basic OSM objects (nodes, ways, relations, notes). Maybe you it's useful to send links of our geocoder (Nominatim) instead? For example the mentioned Euskirchener Straße http://nominatim.openstreetmap.org/details.php?place_id=150696442 But be aware that finding a complete list of street-segements isn't that trivial and AFAIK osm.org website currently has a focus on mappers/contributors and isn't tuned for perfectly satisfaction of consumers ;-) answered 19 Dec '14, 12:32 iii |
Can you provide a little bit more information? Where did you read about /ways?ways=id1,id2,id3...? Which server are you talking about already supports this? And why do you want to display multiple ways on openstreetmap.org directly?
As a general question, I think that it's quite a good one - "Euskirchener Straße" I suspect has a logical beginning and an end that encompass many OSM ways (split because of different other tags). Most such streets won't be tied together by a relation, so a "name search based on bounding box" would be needed - but how to know how big to make the bounding box? It's like the "graph" questions that sometimes get asked here, in reverse.
Sorry! Completely forgot to give the link. http://wiki.openstreetmap.org/wiki/API_v0.4#Get_ways
No clue. Just read it in the documentation and found the similarity to the first link I gave.
To get an overview. I need to prepare a children's charity project here in Germany for January and so wanted to plot the streets I assigned to the groups.
Regarding searching for a street: That wasn't really my issue as I already have a good list of the ways belonging to the streets
The issue is more of visualizing (a group of) streets.
Judging from the API documentation I thought I found a way - but it seems to be not supported :(
@5keeve that's actually quite an old version of the API; try looking at http://wiki.openstreetmap.org/wiki/API_v0.6 (or more likely, other services such as Overpass)
Did so:
http://wiki.openstreetmap.org/wiki/API_v0.6#Multi_fetch:GET.2Fapi.2F0.6.2F.5Bnodes.7Cways.7Crelations.5D.3F.23parameters
Looks the same
Besides having looked at the wrong API version: This is really just the API and not the website documentation. Moreover for visualizing you should not use the website directly but instead some framework such as Leaflet or OpenLayers. It is also possible that uMap will suit your needs.
edit:
It does work, but just for the API calls which just return raw data without visualization. See this working example: http://www.openstreetmap.org/api/0.6/ways?ways=1234,2345