streetmap-port
v0.1.0Geocode, reverse geocode and find nearby places with the public OpenStreetMap APIs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
geocode_address
Geocode a free-form address or place name to coordinates via the OSM Nominatim API
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-form address or place name to geocode to coordinates. |
limit | number | Optional maximum number of geocoding results to return; defaults to 5 and is clamped to 1-50. |
reverse_geocode
Reverse geocode coordinates to the nearest address via the OSM Nominatim API
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in decimal degrees, from -90 to 90, of the point to reverse geocode. |
longitude * | number | Longitude in decimal degrees, from -180 to 180, of the point to reverse geocode. |
search_places
Search for places by name via the OSM Nominatim API
| Parameter | Type | Description |
|---|---|---|
query * | string | Place name or search text to look up via Nominatim. |
limit | number | Optional maximum number of place results to return; defaults to 10 and is clamped to 1-50. |
find_nearby
Find places of a category near coordinates via the OSM Overpass API
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in decimal degrees, from -90 to 90, of the centre point to search around. |
longitude * | number | Longitude in decimal degrees, from -180 to 180, of the centre point to search around. |
category | string | Optional bare OpenStreetMap tag key (letters and underscores only, for example 'amenity') whose tagged nodes to find nearby; defaults to 'amenity'. |
limit | number | Optional maximum number of nearby places to return; defaults to 20 and is clamped to 1-100. |
radius | number | Optional search radius in metres around the coordinates; defaults to 1000 and must be greater than 0. |
get_place_details
Get details of one OSM object (node, way or relation) via the Nominatim lookup API
| Parameter | Type | Description |
|---|---|---|
osm_id * | number | Numeric OpenStreetMap identifier of the object to look up; must be non-negative. |
osm_type * | string | Type of OpenStreetMap object to look up: 'node', 'way', or 'relation'. |
distance_between
Compute the great-circle distance in kilometres between two coordinate pairs (local, no API call)
| Parameter | Type | Description |
|---|---|---|
from_latitude * | number | Latitude in decimal degrees, from -90 to 90, of the starting point. |
from_longitude * | number | Longitude in decimal degrees, from -180 to 180, of the starting point. |
to_latitude * | number | Latitude in decimal degrees, from -90 to 90, of the destination point. |
to_longitude * | number | Longitude in decimal degrees, from -180 to 180, of the destination point. |