GeoSpark
v0.10.0Verifiable geospatial tools: distances, topology, isochrones, Overture Maps, with sources.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
calculate_distance Geodesic distance
Exact geodesic distance between two places or geometries on the WGS84 ellipsoid. Use for any "how far" question instead of estimating. For NAMED places pass place_a and place_b; the server geocodes them, so never type coordinates for a place yourself. Use point_a/point_b only for coordinates the user gave or another tool returned. For lines and polygons the distance is between their nearest points. Returns metres and kilometres.
| Parameter | Type | Description |
|---|---|---|
place_a | A place NAME, e.g. 'Adelaide Oval'; geocoded on the server (preferred) | |
place_b | A place NAME, e.g. 'Adelaide Oval'; geocoded on the server (preferred) | |
point_a | A GeoJSON geometry, e.g. {"type": "Point", "coordinates": [lon, lat]}; only for coordinates the user gave or a tool returned | |
point_b | A GeoJSON geometry, e.g. {"type": "Point", "coordinates": [lon, lat]}; only for coordinates the user gave or a tool returned |
check_spatial_relationship Topological relationship
Ground-truth topology: does geometry_a <relationship> geometry_b? Use instead of guessing containment, overlap or adjacency. Invalid geometries (for example self-intersecting polygons) are refused with the reason.
| Parameter | Type | Description |
|---|---|---|
geometry_a * | object | A GeoJSON geometry, e.g. {"type": "Point", "coordinates": [lon, lat]} |
geometry_b * | object | A GeoJSON geometry, e.g. {"type": "Point", "coordinates": [lon, lat]} |
relationship * | string | The relationship to test: does geometry_a <relationship> geometry_b |
spatial_operation Geometry operation
Compute a buffer (shape-preserving, metres), geodesic area or length, centroid or convex hull. Returns the resulting geometry as GeoJSON with its measurements and units.
| Parameter | Type | Description |
|---|---|---|
geometry * | object | A GeoJSON geometry, e.g. {"type": "Point", "coordinates": [lon, lat]} |
operation * | string | What to compute; buffer also needs radius_m |
radius_m | Buffer radius in metres |
geocode Geocode a place
Find coordinates for an address or place name (OpenStreetMap Nominatim). Check `geospark.warnings` for ambiguous names (e.g. "Springfield") and ask the user which one they mean, or add a region.
| Parameter | Type | Description |
|---|---|---|
query * | string | Address or place name |
limit | integer | Maximum number of matches to return |
reverse_geocode Reverse geocode
Find the address or place at a coordinate (OpenStreetMap Nominatim).
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
get_elevation Elevation
Ground elevation in metres (Copernicus GLO-30, Open Elevation fallback), with its vertical datum and accuracy.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
route Driving route
Driving route between two points (OSRM over OpenStreetMap): line geometry, distance in metres and duration in seconds.
| Parameter | Type | Description |
|---|---|---|
from_latitude * | number | Latitude in degrees (WGS84) |
from_longitude * | number | Longitude in degrees (WGS84) |
to_latitude * | number | Latitude in degrees (WGS84) |
to_longitude * | number | Longitude in degrees (WGS84) |
get_weather Weather
Current weather and a daily forecast for a point (Open-Meteo, no key needed).
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
forecast_days | integer | Number of days of daily forecast |
get_air_quality Air quality
Latest PM2.5, NO2, O3 from the nearest monitoring stations (OpenAQ; the server needs an OPENAQ_API_KEY), with each station's data licence.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
get_active_fires Active fires
Satellite active-fire detections near a point (NASA FIRMS; the server needs a FIRMS_MAP_KEY).
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
days | integer | How many days back to look for detections |
isochrone Isochrone (reachable area)
Where can you get to from a point within N minutes on foot, by bike or by car? Returns one polygon per contour with its geodesic area (Valhalla over OpenStreetMap).
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
minutes | array | Contour times, 1-60 |
mode | string | Travel mode: walk, bike or drive |
travel_time_matrix Travel-time matrix
Network travel time (minutes) and distance (metres) from each origin to each destination. Note: points here are [latitude, longitude] pairs.
| Parameter | Type | Description |
|---|---|---|
destinations * | array | [[lat, lon], ...] |
origins * | array | [[lat, lon], ...] |
mode | string | Travel mode: walk, bike or drive |
overture_features Overture Maps features
Open global map data from Overture Maps, no API key: points of interest (with categories), building footprints (height, floors, geodesic footprint area), road and path segments (geodesic length), or `divisions`, the administrative areas containing the point (country, region, city, neighbourhood). Results are nearest first, with distances in metres. Can take 5-20 s on a cold cache.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
theme * | string | Which data: places (points of interest), buildings, transportation (road and path segments) or divisions (areas containing the point) |
category | Places only, e.g. 'cafe' | |
limit | Maximum number of features to return, nearest first | |
radius_m | number | Search radius in metres |
transform_coordinates Transform coordinates (official datums)
Convert coordinates between CRSs as the official transformation does: GDA94 to GDA2020, MGA zones, British National Grid (OSTN15), NAD27 to NAD83 (NADCON), ITRF at an epoch, and any other EPSG pair. Uses national grids (downloaded once), refuses PROJ's ballpark approximations, and returns the operation and its stated accuracy. Use this instead of applying datum parameters yourself.
| Parameter | Type | Description |
|---|---|---|
coordinates * | array | [x, y] or [x, y, z]: [lon, lat] or [easting, northing] |
source_crs * | string | CRS name or EPSG code, e.g. 'GDA94 / MGA zone 55' or EPSG:28355 |
target_crs * | string | CRS name or EPSG code, e.g. 'GDA2020 / MGA zone 55' or EPSG:7855 |
epoch | Decimal year, for ITRF/ATRF frames |
convert_height Convert height (geoid models)
Convert a height between the ellipsoid (GNSS, drones) and a national height datum with the official geoid model: AHD (AUSGeoid2020), ODN (OSGM15), NZVD2016 (NZGeoid2016), NAVD88 (GEOID18), or global EGM2008. Never estimate a geoid separation from memory: it is often tens of metres and varies by metres across a region.
| Parameter | Type | Description |
|---|---|---|
from_reference * | string | 'ellipsoidal', AHD, ODN, NZVD2016, NAVD88 or EGM2008 |
height_m * | number | The height to convert, in metres |
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
to_reference * | string | 'ellipsoidal', AHD, ODN, NZVD2016, NAVD88 or EGM2008 |
sun_position Sun position and shadow
The Sun's apparent elevation and azimuth (from true north) at a place and time, and the shadow a vertical object casts on level ground (NOAA solar position, refraction included).
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
time * | string | ISO 8601, with a UTC offset (2026-12-21T12:00:00+11:00) or local with tz |
object_height_m | Height of a vertical object, for its shadow | |
tz | IANA time zone for a local time, e.g. Australia/Melbourne |
sun_times Sunrise, sunset and hours of sun
Sunrise, solar noon, sunset and day length on a date for a flat horizon; with terrain=True, also the hours of direct sun once hills are taken into account.
| Parameter | Type | Description |
|---|---|---|
date * | string | Local date, YYYY-MM-DD |
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
terrain | boolean | Also count hours of direct sun above the terrain horizon (reads the DEM; ~10-60 s) |
tz | IANA time zone, e.g. Australia/Melbourne; default UTC |
terrain_horizon Terrain horizon
The skyline the terrain makes around a point: for each azimuth, the elevation angle of the horizon and how far away the blocking terrain is (Copernicus 30 m DEM, Earth curvature and refraction). Use for solar-panel shading, valley sunlight, or what hills hide. ~10-60 s.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in degrees (WGS84) |
longitude * | number | Longitude in degrees (WGS84) |
max_distance_m | number | How far out to look for blocking terrain, in metres |
observer_height_m | number | Eye or sensor height above ground |
step_deg | number | Azimuth spacing; must divide 360 |
line_of_sight Line of sight
Whether A and B can see each other over the terrain (Copernicus 30 m DEM, curvature and refraction), the minimum clearance and where it occurs; with frequency_mhz, the first Fresnel zone clearance of a radio link (60% clear is the usual rule).
| Parameter | Type | Description |
|---|---|---|
lat_a * | number | Latitude in degrees (WGS84) |
lat_b * | number | Latitude in degrees (WGS84) |
lon_a * | number | Longitude in degrees (WGS84) |
lon_b * | number | Longitude in degrees (WGS84) |
frequency_mhz | For a radio link: report first Fresnel zone clearance | |
height_a_m | number | Height above ground at A (e.g. a mast) |
height_b_m | number | Height above ground at B |
location_report Location report
A dossier for a place: address, elevation, weather, and nearby amenities with exact distances, as a GeoJSON map layer listing every data source used. Takes ~10-30 s.
| Parameter | Type | Description |
|---|---|---|
location * | string | Place to analyse |
radius_m | number | Search radius for nearby amenities, in metres |
select_site Site selection
Rank candidate sites in an area by geodesic distance to amenities you want nearby and away from ones to avoid (OpenStreetMap data). Takes ~10-30 s.
| Parameter | Type | Description |
|---|---|---|
within * | string | City or neighbourhood |
avoid | array | Amenity types to stay away from |
facility_type | string | What the site is for, e.g. 'pharmacy'; labels the result, does not change the ranking |
near | array | Amenity types to be close to |
radius_m | number | Search radius in metres from the centre of the area |