This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.
fetch_locations.py fetches restaurants within 1 mile of a given point using the Google Places API, then writes filtered results to a JSON file.
Filters: rating (score) > 2.5 stars, more than 10 Google reviews. Review text is not fetched or stored—only the score and count.
Output (per restaurant): name, location (lat/lng + address), rating, number of Google reviews.
- Get a Google Places API key and enable Places API (and Maps Places API if using the new endpoint).
- Create a
.envfile in the project root with:GOOGLE_PLACES_API_KEY=your-api-key - Install dependencies:
pip install -r requirements.txt
Run with latitude and longitude as numbers (no angle brackets). Use negative longitude for places west of Greenwich (e.g. Toronto, North America). Optional: -o path for the output file.
python fetch_locations.py 43.6561 -79.3803
python fetch_locations.py 43.6561 -79.3803 -o output.jsonMore examples:
python fetch_locations.py 37.7749 -122.4194 -o locations.json
python fetch_locations.py 43.6561 -79.3803 --min-reviews 5Output is written to locations.json (or the path given with -o).