Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is currently the highest value of OSM_ID in openstreetmapping?

What is the highest possible value of OSM_ID? 2^31 (2.147.483.648)?

And here I add some more text or my question is rejected because it is too short...

share|improve this question
up vote 2 down vote accepted

So you can get an approximate max ID of node (around 1.5 billion, valid at the moment of writing this answer).

Also take a look at OSM stats page.

share|improve this answer
Thanks to both TomH (for replying to the 2nd question) and Igor for replying to the 1st question. Unfortunately I can not mark them both as "accepted" answer. – Uffe Kousgaard Nov 25 '11 at 12:52
Assuming a highest ID is just wrong. Funnily enough, the node at your second link has been created just two days after your post. When handling IDs then you have to support the complete possible range. See TomH's answer for details. – scai Jul 27 '14 at 11:59
Nobody is assuming anything. And the answer clearly states "valid at the moment of writing this answer". Obviously the number will rise with time. – Igor Brejc Jul 27 '14 at 12:42

The highest ID value will be different for each type of object (nodes, ways and relations) and will change from day to day as people add more objects, so knowing what it is now is of little use.

The IDs are all 64 bit signed integers at the moment, so have a theoretical limit of 2^63-1 or 9,223,372,036,854,775,807 but I think it will take a while before we get to that number.

share|improve this answer
If we are 10 years from breaking the 2^31 barrier, it actually has a lot of use here and now. So, my question persists. For instance I have found up to 138.000.000 in the selection I am currently working with. – Uffe Kousgaard Nov 25 '11 at 10:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.