Local
Find places near you. Resolve a location first, then search for places around it.
Quick Start
Run the environment check once before first use:
python3 scripts/check_env.py
The check verifies Python, network access and local proxy availability, then prints a short summary.
Usage
- Resolve location
curl -X POST http://127.0.0.1:8000/locations/resolve \
-H "Content-Type: application/json" \
-d '{"location_text": "Soho, London", "limit": 5}'
- Search places
curl -X POST http://127.0.0.1:8000/places/search \
-H "Content-Type: application/json" \
-d '{"query": "coffee shop", "location_bias": {"lat": 51.5, "lng": -0.13, "radius_m": 1000}, "limit": 10}'
- Get details
curl http://127.0.0.1:8000/places/PLACE_ID
Response Format
{
"results": [
{
"place_id": "ChIJ...",
"name": "Coffee Shop",
"address": "123 Main St",
"location": {"lat": 51.5, "lng": -0.1},
"rating": 4.6,
"types": ["cafe", "food"],
"open_now": true
}
]
}
Present results with name, rating, address and open status. Offer to fetch details or refine the search.
