changedInput schema / properties / city / description
Previous value: -"Italian municipality (comune) to search around, e.g. \"Milano\", \"Reggio Emilia\", \"Sesto San Giovanni\". Only flyers valid in stores within 15 km are returned. Omit for all of Italy."New value: +"Italian municipality (comune) to search around: where the user is, or the place they ask about, e.g. \"Milano\", \"Reggio Emilia\", \"Sesto San Giovanni\". Only flyers valid in stores within radius_km of its centre are returned. Without a place the search covers all of Italy."
addedInput schema / properties / latitude
Added value: +{
+ "description": "Latitude of the position of the user (WGS84, decimal degrees), together with longitude. Distances are then measured from this point, and only flyers valid in stores within radius_km of it are returned. Takes precedence over city. Used for this answer only, never stored.",
+ "maximum": 90,
+ "minimum": -90,
+ "type": "number"
+}
changedInput schema / properties / limit / description
Previous value: -"Flyers to return (default 30). Nearest first with a city, largest first otherwise."New value: +"Flyers to return (default 30). Nearest first with a city or coordinates, largest first otherwise."
addedInput schema / properties / longitude
Added value: +{
+ "description": "Longitude of the position of the user, together with latitude.",
+ "maximum": 180,
+ "minimum": -180,
+ "type": "number"
+}
addedInput schema / properties / near_me
Added value: +{
+ "description": "Whether to search around the approximate position of the user that some clients share with the call (ChatGPT does). When omitted, that position is used if the call names no city and no coordinates. true: the same, and the answer is an error when no position came with the call. false: all of Italy.",
+ "type": "boolean"
+}
addedInput schema / properties / radius_km
Added value: +{
+ "description": "How far to look around the city centre or the coordinates, in km (default 15).",
+ "maximum": 50,
+ "minimum": 1,
+ "type": "number"
+}
addedOutput schema / properties / city / description
Added value: +"The municipality passed, or the nearest to the coordinates"
addedOutput schema / properties / distances_from
Added value: +{
+ "description": "What distance_km is measured from: the coordinates passed, the approximate position shared by the client (near_me), or the centre of the city",
+ "enum": [
+ "coordinates",
+ "client_location",
+ "city_centre"
+ ],
+ "type": "string"
+}
changedOutput schema / properties / flyers / items / properties / nearest_store / description
Previous value: -"With a city: the nearest store of the chain"New value: +"With a city or coordinates: the nearest store of the chain"
changedOutput schema / properties / flyers / items / properties / nearest_store / properties / distance_km / description
Previous value: -"From the centre of the city"New value: +"From the place in distances_from"
addedOutput schema / properties / flyers / items / properties / nearest_store / properties / latitude
Added value: +{
+ "description": "Position of the store (WGS84)",
+ "type": "number"
+}
addedOutput schema / properties / flyers / items / properties / nearest_store / properties / longitude
Added value: +{
+ "type": "number"
+}
changedOutput schema / properties / flyers / items / properties / stores_nearby / description
Previous value: -"Stores of the chain within 15 km of the city"New value: +"Stores of the chain within radius_km"
addedOutput schema / properties / note
Added value: +{
+ "type": "string"
+}
addedOutput schema / properties / place_assumed
Added value: +{
+ "description": "true when the call named no place and the search was limited to the position shared by the client",
+ "type": "boolean"
+}
addedOutput schema / properties / radius_km
Added value: +{
+ "description": "The radius searched around the place, in km",
+ "type": "number"
+}