Skip to content

A small API project that receives a CSV file containing coordinates and returns the address of each coordinate and the distance between all of their combinations using the Google Geocoding API.

Notifications You must be signed in to change notification settings

boriswc/Simple-Reverse-Geo-Coding-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Simple Reverse Geo-Coding API

Requirements

  • Python Version >= 3.6 (Because of the use of formatted print which was added to Python 3.6)
  • Please see requirements.txt file that includes all necessary pip module installations (Or follow step 2 of the How to run? + install )

How to run? + install

  • Install python3-pip : Execute "sudo apt-get install python3-pip" in terminal and press Y when prompted.
  • Execute "python3 -m pip install -r requirements.txt" in terminal.
  • Define an environment variable called API_KEY with your Google API key (export API_KEY=YOUR_GOOGLE_API_KEY for linux).
  • Execute "python3 main.py".
  • Send request through cURL or WGET (E.G: curl -i -X POST -F "file=@YOUR_CSV_FILE_PATH" http://127.0.0.1:5000/calculateDistances).
    Note: This was tested in Ubuntu, different distros might have some differences in commands.

Project Organization

├── requirements.txt         <- Requirements file (pip installations).
├── main.py                <- Main file. This file executes the project.

Authors

  • Boris Wainstein - Programming - boriswc

About

A small API project that receives a CSV file containing coordinates and returns the address of each coordinate and the distance between all of their combinations using the Google Geocoding API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages