8000 GitHub - bsrinivasa/query-osmapi: Script to query from OSM API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bsrinivasa/query-osmapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Forked and built over resolve-osm tool.

Acknowledgements: @batpad @planemad

Query OSM API (beta - testing)

Silly small package that takes a CSV file with node_osm_id, way_osm_id or relation_osm_id references to OpenStreetMap features and returns a valid GeoJSON.

Currently the script uses the osm_id and osm_type and queries for:

  • lat
  • long
  • name
  • name:zh
  • wikidata
  • wikipedia

Feel free to customise this script for the required fields.

Usage

Input csv should have osm_id, osm_type, and empty columns for the required fields.

Convert your CSV to a JSON

csv2json foo.csv out.json

Run the script

node index.js <input_file.json> <output.geojson>

About

Script to query from OSM API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0