This GitHub repo supports a web application to provide NPR radio stations along a directional driving route. The application takes user input origin and destination and returns an image containing a driving route, color coded by NPR station frequencies. Please be patient with requests, as they can take up to 10 seconds. An example is included below. In this case, the user asked for directions from New York, NY to Washington, D.C.
This web application talks to the Google Maps Directions API and the NPR Station API in order to determine NPR stations nearest to a driving direction route. A flowchart of this process can be found below.
If you would like to run the flask app locally, run the commands below.
Step 1: Clone the repo.
git clone https://github.com/razalamb1/npr-directions.git
Step 2: Navigate your way into the repo.
cd npr-directions
Step 3: Run the Makefile to install and/or update requirements.
make install
Step 4: Obtain API Keys for Google Maps and NPR.
In order to run this, you will need to get an API key for Google Maps and NPR. Then you will need to create a .env
file with these API keys in the root directory and the src
folder, following the format from the provided example.
Step 5: Run the flask app locally by executing main.py.
python flask_app.py
Authors: Raza Lamb, Peining Yang