Location Search
location_searchSearch locations, addresses, or points of interest by name and retrieve geographic coordinates with metadata. Supports geocoding of places and POIs with optional category filters.
Instructions
Search for locations, places, and points of interest by name or address to retrieve their geographic coordinates. Supports geocoding of place names, POIs, businesses, landmarks, and addresses with optional category filtering. Returns coordinates, formatted addresses, and metadata for matching locations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Primary search query. REQUIRED. For target="pois": describe the POI (e.g. "gas station", "Italian restaurant", "Eiffel Tower"). For target="addresses": full or partial street address (e.g. "10 Downing Street"). For target="cities": city name (e.g. "Berlin"). | |
| target | Yes | Result type to return. One of: "pois" (Points of Interest: businesses, landmarks, services), "addresses" (street addresses and house numbers), "cities" (city, town, or settlement names). CRITICAL: when target="pois", you MUST also provide at least one entry in poi_categories. | |
| poi_categories | No | POI category filters. REQUIRED when target="pois"; ignored otherwise. Provide one or more values from this exact set: "gas_stations", "parking", "food&drink", "accommodation", "medical_services", "shopping" (shops, supermarkets, malls), "car_services", "public_transport", "education", "entertainment", "public_services", "geographic_area", "business", "sightseeing", "religious_places", "roadside", "sports", "uncategorized", "hydrants", "emergency_services_support", "civil_emergency_infrastructure". Pick the narrowest category that matches the user intent. | |
| reference_location | Yes | Geographic context that biases and ranks the search. REQUIRED. Provide coordinates (preferred, most accurate) and/or location_text (city/region/country). Results closer or more relevant to this anchor rank higher. | |
| locale | No | ISO 639-2 / ISO 639-3 language code for returned place names and address fields (e.g. "en", "de", "fr", "ja"). Default "en". | en |
| limit | No | Maximum number of results to return, ranked by relevance (best match first). Positive integer. Default 5. Use a smaller value (1-3) when you only need the top match. |