streetmap-port

v0.1.0
io.github.CloudCorpRecords/streetmap-port Checked 2 days ago Published 1 month ago

Geocode, 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

ParameterTypeDescription
query *stringFree-form address or place name to geocode to coordinates.
limitnumberOptional 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

ParameterTypeDescription
latitude *numberLatitude in decimal degrees, from -90 to 90, of the point to reverse geocode.
longitude *numberLongitude 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

ParameterTypeDescription
query *stringPlace name or search text to look up via Nominatim.
limitnumberOptional 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

ParameterTypeDescription
latitude *numberLatitude in decimal degrees, from -90 to 90, of the centre point to search around.
longitude *numberLongitude in decimal degrees, from -180 to 180, of the centre point to search around.
categorystringOptional bare OpenStreetMap tag key (letters and underscores only, for example 'amenity') whose tagged nodes to find nearby; defaults to 'amenity'.
limitnumberOptional maximum number of nearby places to return; defaults to 20 and is clamped to 1-100.
radiusnumberOptional 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

ParameterTypeDescription
osm_id *numberNumeric OpenStreetMap identifier of the object to look up; must be non-negative.
osm_type *stringType 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)

ParameterTypeDescription
from_latitude *numberLatitude in decimal degrees, from -90 to 90, of the starting point.
from_longitude *numberLongitude in decimal degrees, from -180 to 180, of the starting point.
to_latitude *numberLatitude in decimal degrees, from -90 to 90, of the destination point.
to_longitude *numberLongitude in decimal degrees, from -180 to 180, of the destination point.