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

Hi,

I need to get the id of a "way" when I only have the way's node IDs, at least two such nodes that are given to be associated with, or sit exactly on that way.

What would you recommend as the procedure to achieve this? I'm in-familiar with OSM's API and couldn't find an answer here.

Thanks!

asked 23 Jan '13, 08:20

Boaz's gravatar image

Boaz
26112
accept rate: 0%


Try "ways for node" perhaps.

Edit: Sorry, I read "in-familiar" as familiar. So, for example, for node 1818806301

http://api.openstreetmap.org/api/0.6/node/1818806301/ways

permanent link

answered 23 Jan '13, 08:29

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

edited 23 Jan '13, 08:31

1

that's great, but i'll need locally run, best performance solution. What schema do you recommend for installation and what API package would you use? Also, given the way-id i'll need to create/update a tag for the way. maybe that has implications on the API package. Thanks!

(23 Jan '13, 08:40) Boaz

I saw your discussion on the #osm IRC channel, where I think pgsnapshot schema was recommended. That's beyond me at the moment though as I've not tried it.

(23 Jan '13, 10:18) EdLoach ♦
1

Gotcha. Indeed, that was me on the IRC. I'm going to give the recommendations given through IRC a shot. Thanks!

(23 Jan '13, 12:56) Boaz

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:

×290

question asked: 23 Jan '13, 08:20

question was seen: 4,831 times

last updated: 23 Jan '13, 13:17

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