As we know each element has element ID assigned to it. On what basis 64 bit element ID's are assigned. Does element IDs have any structure. Where can i find more details about Element ID generation and its structure.

asked 27 Sep '19, 06:48

Amruthesha's gravatar image

accept rate: 0%

The element IDs (node, way, relation IDs) are assigned by the PostgreSQL database on the central OpenStreetMap server. The API code merely tells the database to "save" a new object with an ID of NULL (e.g. for a new node, the relevant code line is and then the database assigns a new ID based on a PostgreSQL "sequence" (cf.

These IDs have no structure or meaning altogether.

permanent link

answered 27 Sep '19, 07:33

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

edited 27 Sep '19, 07:34

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 27 Sep '19, 06:48

question was seen: 1,118 times

last updated: 27 Sep '19, 07:34

powered by OSQA