Skip to content
Bulk convert from address to coordinates (latitude/longitude)
Shell Python
Branch: master
Clone or download
viniroger Bug correction and limit changed
- Corrected bug to write line on "do_later" instead "file_out" if coordinates=0
- Limit to count_trouble changed from 10 to 5 (using key gets less error status)
Latest commit 0a3c08f Dec 20, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Including more information Dec 19, 2017
coordinates_ex.csv Uploading files by first time Dec 19, 2017
places_ex.csv Uploading files by first time Dec 19, 2017
read_json.py Uploading files by first time Dec 19, 2017
rec_coord.sh Bug correction and limit changed Dec 20, 2017

README.md

Bulk convert from address to latitude/longitude

Bash script "rec_coord.sh" read CSV file line by line to extract address at two formats: STREET, NUMBER and STREET crossing STREET. An URL is mounted to use API Google Maps Geocoding and a JSON file is downloaded. This file is read by "read_json.py" python script to obtain geographical coordinates (latitude and longitude).

  • Put your API key from Google Maps Geocoding at "rec_coord.sh" shell script
  • Input file: places.csv (according with places_ex.csv example)
  • Output files: coordinates.csv (conversion OK) and dolater_coordinates.csv_YYY-mm-DD_HH:MM (conversion not OK)

More details at comments on scripts and this link (in portuguese): https://www.monolitonimbus.com.br/como-converter-endereco-em-latitude-e-longitude/

You can’t perform that action at this time.