A Flask web app that finds nearby cities and searches for cities by name, powered by the Tova Cities API.
- Install dependencies:
pip install -r requirements.txt- Copy
.env.exampleto.envand add your API key:
TOVA_API_KEY=your_api_key_here
You can get a free key at tovaapis.com.
- Run the app:
python app.pyThe app will be available at http://localhost:5000.
- / (Nearest): Enter coordinates or click "Use My Location" to find cities near you.
- /search: Search for cities by name, optionally filtering by country.
Full API docs are available at tovaapis.com/Docs/Cities.