OpenStreetMap
v0.3.2Geocoding, walking/driving/cycling distances, route optimization, isochrones and POI search on OSM
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
geocode Geocode a place or address
Converts a place name or address into coordinates using OpenStreetMap. Returns matching places with lat/lon, a display label and the OSM id. Provider "nominatim" (default) is best for addresses; "photon" is typo-tolerant and better for fuzzy place names.
| Parameter | Type | Description |
|---|---|---|
query * | string | Place name or address |
countrycodes | string | Restrict to countries: comma-separated ISO 3166-1 alpha-2 codes, e.g. "de,lu" (Nominatim only) |
language | string | Language for place names (IETF code like "en" or "de"), default "en" |
limit | integer | Maximum number of results, default 3 |
provider | string | Geocoder to use, default nominatim |
reverse_geocode Reverse geocode coordinates
Converts coordinates into the nearest address or place name (Nominatim).
| Parameter | Type | Description |
|---|---|---|
latitude * | number | |
longitude * | number | |
language | string | Language for place names (IETF code like "en" or "de"), default "en" |
route Route between places
Calculates the real-world travel distance and time between two or more places, walking, driving or cycling, on OpenStreetMap data. Waypoints are visited in the given order. Set include_steps for a turn-by-turn summary. Use route_matrix to compare many pairs, optimize_route to reorder stops.
| Parameter | Type | Description |
|---|---|---|
profile * | string | Travel mode: on foot, by car or by bicycle |
waypoints * | array | Start, optional stops in between, destination |
include_steps | boolean | Include a turn-by-turn step summary, default false |
language | string | Language for resolved place labels, default "en" |
route_matrix Travel time/distance matrix
Computes travel times and distances from every origin to every destination in one call — ideal for comparing options (e.g. 5 hotels against 3 sights). Cells are null where no route exists.
| Parameter | Type | Description |
|---|---|---|
destinations * | array | |
origins * | array | |
profile * | string | Travel mode: on foot, by car or by bicycle |
language | string | Language for resolved place labels, default "en" |
optimize_route Optimize stop order
Finds the best order to visit a set of stops (traveling-salesman optimization) and returns the optimized itinerary with total distance and time. With roundtrip (default) the tour returns to the first stop; without it the first stop is the start and the last stop the end.
| Parameter | Type | Description |
|---|---|---|
profile * | string | Travel mode: on foot, by car or by bicycle |
stops * | array | |
language | string | Language for resolved place labels, default "en" |
roundtrip | boolean | Return to the first stop at the end, default true |
isochrone Reachable area (isochrone)
Shows how far you can get from a place within a time or distance budget ("what is reachable in 15 minutes on foot?"). Returns a compact summary of the reachable area: bounding box and reach per compass direction. Give exactly one of minutes or kilometers.
| Parameter | Type | Description |
|---|---|---|
center * | string | Place name, address, or coordinates as "lat,lon" |
profile * | string | Travel mode: on foot, by car or by bicycle |
kilometers | number | |
language | string | Language for resolved place labels, default "en" |
minutes | number |
find_nearby_pois Find nearby places (POIs)
Finds points of interest near a location, sorted by distance. Category shortcuts: restaurant, cafe, bar, pub, fast_food, ice_cream, hotel, hostel, guest_house, apartment, camp_site, attraction, museum, gallery, viewpoint, information, artwork, castle, monument, ruins, supermarket, bakery, convenience, pharmacy, hospital, doctors, police, atm, bank, fuel, charging_station, parking, toilets, drinking_water, bus_stop, train_station, tram_stop, ferry_terminal, bicycle_rental, car_rental, playground, park, beach, swimming_pool. Any other OSM tag works as "key" or "key=value" (e.g. "diet:vegan=yes")…
| Parameter | Type | Description |
|---|---|---|
category * | string | Category shortcut or OSM tag filter |
near * | string | Place name, address, or coordinates as "lat,lon" |
language | string | Language used when geocoding place names, default "en" |
limit | integer | Maximum number of results, default 10 |
radius_m | integer | Search radius in meters, default 1000 |
poi_details Get POI details
Fetches the full OpenStreetMap record of one element — all tags (opening hours, website, phone, …), coordinates and a map link. Takes an OSM id as returned by find_nearby_pois or geocode, e.g. "node/240109189".
| Parameter | Type | Description |
|---|---|---|
osm_id * | string |
suggest_meeting_point Suggest a meeting point
Suggests a fair place to meet for people starting from different locations: finds venues around the geographic midpoint and picks the one with the most balanced travel times for everyone.
| Parameter | Type | Description |
|---|---|---|
locations * | array | Starting points of all participants |
language | string | Language used when geocoding place names, default "en" |
profile | string | How everyone travels, default foot |
search_radius_m | integer | Venue search radius around the midpoint, default 1500 |
venue_category | string | What kind of venue to meet at, default "cafe" |
straight_line_distance Straight-line distance
Great-circle ("as the crow flies") distance between two places. Instant and independent of any road network — use route for real travel distances.
| Parameter | Type | Description |
|---|---|---|
from * | string | Place name, address, or coordinates as "lat,lon" |
to * | string | Place name, address, or coordinates as "lat,lon" |
language | string | Language used when geocoding place names, default "en" |
map_link Generate map links
Generates openstreetmap.org links to open in a browser: a marker link for a single place, or a directions link when from and to are given. Provide either "place", or both "from" and "to".
| Parameter | Type | Description |
|---|---|---|
from | string | Start for a directions link |
language | string | Language used when geocoding place names, default "en" |
place | string | Place for a marker link |
profile | string | Travel mode for the directions link, default foot |
to | string | Destination for a directions link |