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

I'm looking for a good way to add additional data (annotations) to OSM. I've a custom routing application (programmed in java) which requires additional, application specific data. For example, each road segment needs to be annotated with a "priority" field. Since this is an application specific field, this is not something you want to add directly to the existing OSM data. Consequently, I was wondering whether there's a good way to add a new layer ('ApplicationLayer') on top of the OSM data. The purpose of this layer is to add additional application-specific data. Ideally, I'm looking for a way to create the layer such that it remains compatible with the underlying OSM data. So if somebody updates/changes OSM, than this should be reflected in the ApplicationLayer. It would be very annoying if there's no way to keep the ApplicationLayer synchronized with the OSM data, or to detect conflicts.

asked 18 Apr '16, 18:45

JorisK's gravatar image

JorisK
26445
accept rate: 0%

are you talking of software development? What do you mean by "reflected"? Do you mean if a shop is moved 20 meters in OSM, then your annotations should also move?

(18 Apr '16, 19:10) aseerel4c26 ♦

This is not easy to do, particularly because you cannot assume that OSM ids are stable. I would suggest looking at http://opentraffic.io/ for way matching code. While their application is slightly different they essentially had to solve the same issue as you.

Naturally you could build something that tracks changes by consuming diffs, however this is likely to be very tricky to do and you would still need to use something as indicated above as a fallback.

permanent link

answered 19 Apr '16, 10:55

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 19 Apr '16, 15:33

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:

×6

question asked: 18 Apr '16, 18:45

question was seen: 3,051 times

last updated: 19 Apr '16, 15:33

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