Nearest place of a category
yatmo_get_nearest_by_categoryFind the nearest point of interest by category, such as school, supermarket, or train station, and get its distance and travel time from a latitude and longitude.
Instructions
Returns the single nearest point of interest of a given category (e.g. the nearest school) with distance and travel time. Categories: school, nursery, supermarket, public_transport, train_station, motorway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | Country code (market), e.g. BE, FR, NL | |
| category | Yes | Category token, e.g. school, nursery, supermarket, train_station, motorway, public_transport | |
| language | Yes | Language code, e.g. fr, en, nl, de | |
| latitude | Yes | Latitude, -90..90 | |
| longitude | Yes | Longitude, -180..180 |