Measure distance, area, radius or buffer
measureUse this when the user wants a straight-line (as the crow flies) distance between places with midpoint and bearing, the length of a drawn line, the area and perimeter of a polygon, a circle of a given radius around a place, or a buffer of a given width around a drawn line or polygon. Distances and areas are geodesic on the WGS 84 ellipsoid, buffers are built in a local equidistant projection; every figure states its unit (m, km, m², ha, km²). method "distance" takes 2 or more points or place names, or a line in geometry; "area" takes 3 or more points or a polygon in geometry; "radius" takes a center and radius_m; "buffer" takes a geometry and radius_m. Not a road or travel distance. Returns the numbers, a map and GeoJSON, KML, Shapefile zip or CSV downloads. Never use the user's current location unless they type it. Give the place as the user names it (place name, address or coordinates): this tool locates it, so find_places is not needed first. Download links build their file when opened; no file is saved. Never pass these links to open_gis_file: list every format the user needs in formats, in this one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| center | No | For radius: the center, a point or a place name. The place the user asks about, not the user's own location. | |
| method | Yes | What to measure. | |
| points | No | For distance (2+) and area (3+): points or place names in order. The place the user asks about, not the user's own location. | |
| formats | No | Download formats. | |
| geometry | No | A drawn geometry as GeoJSON (Point, LineString, Polygon, MultiLineString or MultiPolygon, WGS 84 longitude, latitude), or a Feature holding one. | |
| radius_m | No | For radius and buffer: the distance in metres (convert km or miles to metres first). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code, on errors only. | |
| hint | No | What to do next, on errors only. | |
| message | No | Error message, on errors only. | |
| sources | No | Data sources and licences of the result. | |
| downloads | No | Download links; each builds its file when opened. | |
| truncated | No | ||
| totalFound | No |