tag2link
v2024.10.21
Published
Formatter URLs for OpenStreetMap tags
Downloads
62
Readme
Tag2Link
This repository contains formatter URLs for OpenStreetMap keys. The data is obtained from:
- Wikidata items which have OSM tag or key (P1282) and formatter URL (P1630) defined
- OSM Wiki Wikibase via the OSM Sophox Service which have formatter URL (P8)
Contributing
OSM Wiki Data
- Read https://wiki.openstreetmap.org/wiki/Data_items.
- Create the item (see https://wiki.openstreetmap.org/wiki/Data_items#Item_creation_process).
- Input the standard information for the tag. Be as complete as possible please. Other software may use this information (such as for validation purposes).
- Add the
formatter url
(P8
) property. - Don't forget to add the site link (see #2 for details).
- Wait for the next update
Example: https://wiki.openstreetmap.org/wiki/Item:Q401
Usage
Use index.json
in your application. Replace $1
with the tag value.
You may want to obtain the package from npm: https://www.npmjs.com/package/tag2link
Updating
Run npm build
which will update index.json
.
Taginfo
The extracted keys and URLs are also provided in Taginfo: https://taginfo.openstreetmap.org/projects/tag2link#tags