Skip to content

The purpose of this program is to generate a csv of all apartments in a city, state, and order them from least to greatest distance from a specified location.

Notifications You must be signed in to change notification settings

Millerlm012/ApartmentDistanceCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Apartment Distance Calculator

About

For starters, the name of the program is still in progress. With that out of the way, the purpose of this program is to generate a csv of all apartments in a provided city, state, and order them from least to greatest distance from a specified location.

Setup

If you're wanting to run this program locally on your own machine, please follow the following setup instrutions.

  1. Ensure you have python3 installed on your machine. You can install python3 here.
  2. Once you have python3 installed, create a virtual environment for the project, activate the newly created virtual environment, and install the required packages with the following command:
# please ensure you execute this command from a terminal that is in the same directory as the requirements.txt
pip install -r requirements.txt
  1. After setting up you're environment you will need to create an API KEY to utilize Google's Distance Matrix API. Click here to find instructions on how to create your key.
  2. Once your key has been created, please create a .env file in the srv/ directory. In the .env, please add the following:
DISTANCE_MATRIX_KEY=your_newly_created_distance_api_key
  1. Finally, you should be able to execute srv/main.py, follow the prompts, and receive a result.csv!

If you run into any issues, please contact Landon Miller at millerlm012@gmail.com.

NOTE: If you need assistance with installing python3 or creating a virtual environment, feel free to check out my blog post that covers these topics!

About

The purpose of this program is to generate a csv of all apartments in a city, state, and order them from least to greatest distance from a specified location.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages