Data items/Guidelines for developers

From OpenStreetMap Wiki
Jump to navigation Jump to search

information icon

This article is a stub. You can help OpenStreetMap by expanding it.

Data items were originally created to facilitate the description info boxes. Its use can and should go beyond that. Here are some guidelines on what can be used outside of this wiki for OSM applications.

UI/UX design

Use (and create new) key types to design your UI.

Input validation

The value validation regex (P13) property of the item and/or the item's key type can be used for simple input validation. More complex validations of, for example, opening_hours=* or website=*, will need to rely of external libraries.

Rendering

The formatter URL (P8) property of the item and/or the item's key type can be used to generate links.