Measure Line Length
length_toolMeasure the total length of a line defined by coordinates. Supports kilometers, miles, meters, and feet. Works offline without API calls.
Instructions
Measure the total length of a line defined by a series of coordinates. Useful for measuring a drawn route, path, or boundary without a routing API call. Supports kilometers, miles, meters, and feet. Works offline without API calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Units for the length measurement | meters |
| coordinates | Yes | LineString coordinates as [longitude, latitude] pairs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | Yes | Units of measurement | |
| length | Yes | Total length of the line | |
| num_coordinates | Yes | Number of coordinate points in the line |