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

Hi!

I found some links like:

http://www.openstreetmap.org/?way=273332264

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

http://www.openstreetmap.org/way/273332264

I looked further and found

Get ways describing the url as being

/ways?ways=id1,id2,id3...

But I couldn't figure out how to apply this to "my" street which would be

http://www.openstreetmap.org/ways?ways=273332264,273332263,33527209,142030348,33239773,22889305,273332262,190065022,273332252,257255152,273332271,273332270,273332266,208884097,129032431,273332260,273332259,273332269,273332265,273332261,273332267,273332258,273332268

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's gravatar image

5keeve
41113
accept rate: 0%

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?

(19 Dec '14, 09:56) scai ♦
1

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.

(19 Dec '14, 11:11) SomeoneElse ♦
2

Where did you read about /ways?ways=id1,id2,id3...

Sorry! Completely forgot to give the link. http://wiki.openstreetmap.org/wiki/API_v0.4#Get_ways

Which server are you talking about already supports this?

No clue. Just read it in the documentation and found the similarity to the first link I gave.

And why do you want to display multiple ways on openstreetmap.org directly?

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.

(19 Dec '14, 11:48) 5keeve
1

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

http://regio-osm.de/listofstreets/evaluation?title=D%C3%BCren&country=Bundesrepublik%20Deutschland

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 :(

(19 Dec '14, 11:48) 5keeve
4

@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)

(19 Dec '14, 12:13) SomeoneElse ♦

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

.../ways?ways=id1,id2,...
(19 Dec '14, 12:27) 5keeve
2

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

(19 Dec '14, 12:28) scai ♦
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 ;-)

permanent link

answered 19 Dec '14, 12:32

iii's gravatar image

iii
4.9k84082
accept rate: 10%

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:

×167
×98

question asked: 19 Dec '14, 09:45

question was seen: 3,423 times

last updated: 19 Dec '14, 13:15

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