https://github.com/sumolari/valencia-wikibic-geocoder
A tool to geocode Wikipedia Valencian BICs
https://github.com/sumolari/valencia-wikibic-geocoder
geocoding reverse-geocoding wikipedia
Last synced: 12 months ago
JSON representation
A tool to geocode Wikipedia Valencian BICs
- Host: GitHub
- URL: https://github.com/sumolari/valencia-wikibic-geocoder
- Owner: Sumolari
- License: mit
- Created: 2018-04-08T09:15:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-08T09:22:37.000Z (about 8 years ago)
- Last Synced: 2025-02-02T15:19:27.996Z (over 1 year ago)
- Topics: geocoding, reverse-geocoding, wikipedia
- Language: JavaScript
- Size: 61.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
A simple tool to geocode data in Wikipedia Valencia BIC tables:
- https://es.wikipedia.org/wiki/Anexo:Bienes_de_relevancia_local_de_la_ciudad_de_Valencia_(A-L)
- https://es.wikipedia.org/wiki/Anexo:Bienes_de_relevancia_local_de_la_ciudad_de_Valencia_(M-Z)
This tool generates a CSV with original content and coordinates for those rows without them and a new column with the zipcode.
# Installation
1. Install dependencies: `yarn` or `npm i `
2. Set up API key in `.apprc` (example in `apprc.sample`)
3. Prepare input file in `source.txt` (example in `source.txt.sample`) or `source.csv` (example in `source.csv.sample`)
# Usage
If you use a CSV input file, just run:
- `node index.js `
If you use a txt input file, run:
- `node convertToCSV.js`
- `node index.js`
Each step will generate some cache files:
- `data.cache.json`
- `geocoded.cache.json`
- `reversed.cache.json`
Output file will be available at `output.csv`