Skip to content

awacero/nearest_city_distance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nearest_city_distance

Program to detect the distance to the nearest city based on the coordinates indicated when running the program.

View Documentation: nearest_city_distance Documentation

Clone nearest_city_distance code:

git clone https://github.com/awacero/nearest_city_distance.git

Installation:

cd nearest_city_distance/
conda env create -f environment.yml
conda activate nearest_city

Run nearest_city_distance:

conda activate nearest_city
cd nearest_city_distance/
python manage.py

Go to URL: http://127.0.0.1:5000/get_nearest_city?lat=-2.71&lon=-78.56&token=clavemuysecreta

Result:

If the program execution is successful, it should be displayed:

  1. Distance
  2. City
  3. Province or State

Screenshot from 2022-10-14 10-16-18

How to run test:

cd PATH_PROJECT
pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published