Skip to content

A streamlit demo for OOH that fetches Location Insights and industry information directly from Control Center

Notifications You must be signed in to change notification settings

predicthq/streamlit-integrated-ooh-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PredictHQ Location Insights Demo App

This is a Streamlit app designed to show how easy it is to get up and running quickly with the PredictHQ APIs. Please feel free to take a copy of this code and modify it for your own use, or take the bits you need to make your integration with PredictHQ easier and faster. This streamlit application automatically fetches any Location Insights that you have configured, and uses the industry you have defined there for the suggested radius.

Learn more about integrating with the PredictHQ APIs at https://docs.predicthq.com.

Running the app

To run the app locally:

$ cd streamlit-integrated-location-insights-demo
$ python3 -m venv .venv
$ 
$ source .venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requirements.txt
$ 
$ streamlit run map.py

You'll need to get an API token by following the instructions at https://docs.predicthq.com/api/authenticating and create a Streamlit secrets file .streamlit/secrets.toml with the following contents:

api_key = "<your API token>"

To add Locations to the Streamlit App, simply add Location Insights within Control Center.

About

A streamlit demo for OOH that fetches Location Insights and industry information directly from Control Center

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%