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

Does the OpenStreetMap API set a limit on the number of nodes in a way?

Does the OpenStreetMap API set a limit on the number of members in a relation?

asked 20 Jul '10, 20:59

Sven%20L's gravatar image

Sven L
2854813
accept rate: 0%


Yes. Currently api set limit 2000 nodes per way. All api limit can be see in http://api.openstreetmap.org/api/0.6/capabilities.

Coastline and ofter that object that are over 2000 nodes length are typical divided around 500 node pieces. This make easier edit pieces, because you can add nodes to them.

permanent link

answered 20 Jul '10, 21:29

kallam's gravatar image

kallam
2153811
accept rate: 50%

edited 21 Jul '10, 12:56

Use the following API call to find the limits. http://api.openstreetmap.org/api/0.6/capabilities

permanent link

answered 21 Jul '10, 09:56

Firefishy's gravatar image

Firefishy ♦♦
1.3k73652
accept rate: 29%

The number of nodes in a way is limited to 2,000. Just like other API limits, this is coded in the application.yml file in the rails port:

http://git.openstreetmap.org/?p=rails.git;a=blob;f=config/application.yml;hb=HEAD

There is currently no limit to number of elements in a relation, but it is possible that one could be added at a later time. You should certainly avoid ever having more than 2,000 members in a relation even if it is currently possible. Relations that big slow down editing and cause unnecessary waste of bandwidth.

For route relations or boundaries, make cascading relations if you're approaching a four-digit number of members. For multipolygon relations, split them in several parts.

permanent link

answered 20 Jul '10, 22:13

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

edited 20 Jul '10, 23:21

Tordanik's gravatar image

Tordanik
12.0k15106147

2

Cascading relations are a bad idea. They are hard to understand and hard to work with in software. As far as I know, no software currently understands them. This problem should be solved on a different level.

(21 Jul '10, 06:45) Jochen Topf

JOSM understands cascading relations.

(22 Jul '10, 20:13) Baloo Uriza

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
×236
×205
×167

question asked: 20 Jul '10, 20:59

question was seen: 12,452 times

last updated: 22 Jul '10, 20:13

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