Data items/Guidelines for developers
Jump to navigation
Jump to search
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.