Compare a city's neighborhoods
compare_neighborhoodsSet the neighborhoods of one city side by side: the distance to the nearest rail or metro station, and how many parks, supermarkets, pharmacies, schools, restaurants and cafes lie within 1 km of each neighborhood centre. Counted from OpenStreetMap; the answer carries the date of the map data.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"city": "<city>"
},
"name": "compare_neighborhoods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City name, "name, country" when the name is shared, or GeoLocale's id for the city, for example "lisbon". | |
| limit | No | How many neighborhoods to return. Default 30. | |
| sort_by | No | Order by one measure: transit is closest station first, the others are most first. Omit for the order of the city page. |