0.1.0 • Published 2 years ago
wtf-plugin-openstreetmap v0.1.0
Instructions for parsing OpenStreetMap's wiki at https://wiki.openstreetmap.org
wtf.extend(require('wtf-plugin-openstreetmap'))
The OSM wiki api uses a custom path:
wtf.fetch('https://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway', { path: '/w/api.php' }).then((doc) => {
console.log(doc.templates('ValueDescription'))
})
Some of the data in the osm wiki, such as Map_features is generated dynamically through {{Taglist}}, which means it cannot be retrieved.
MIT
0.1.0
2 years ago