Skip to content

A web application to provide NPR radio stations along a directional driving route.

Notifications You must be signed in to change notification settings

razalamb1/npr-directions

Repository files navigation

NPR Directions

test_workflow

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.

Alt Text

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.

Alt Text

Getting Started

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

About

A web application to provide NPR radio stations along a directional driving route.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published