Actions6
- Search Actions
- Query Actions
- Spatial Actions
- Route Actions
Spatial → Calculate Relationship
AI-generatedSummary
Calculate relationships between two geographic points based on specified coordinates.
Inputs
- startLat (required) — Starting point latitude.
- startLon (required) — Starting point longitude.
- endLat (required) — Ending point latitude.
- endLon (required) — Ending point longitude.
- include — Information to include in the response (e.g., Distance, Direction, Travel Time, Description).
- requestOptions — Additional options for the request, including Batching, Ignore SSL Issues, Proxy, and Timeout.
Output shape
a detailed object containing the calculated relationship data including distance, direction, travel time, and description.
The response will include only the selected 'include' options, which are Distance, Direction, Travel Time, and Description.
Examples
Example 1: Get relationship details between New York and Los Angeles
Use startLat: 40.7128, startLon: -74.0060, endLat: 34.0522, endLon: -118.2437, and include all options.