Skip to content

location

location #

Location operator procedures for calculations on geographic coordinates.

These procedures enable spatial analysis, distance calculations, and location-based logic within workflows.

LocationDistanceMeters #

Bases: Procedure[Number]

Calculate the distance between two geographic locations in meters.

Useful for determining proximity, validating location accuracy, or triggering location-based actions.

Attributes:

Name Type Description
left Input[Location]

The first location.

right Input[Location]

The second location.

Source code in capturegraph-lib/capturegraph/procedures/nodes/process/operators/location.py
@make_procedure
class LocationDistanceMeters(Procedure[Number]):
    """Calculate the distance between two geographic locations in meters.

    Useful for determining proximity, validating location accuracy, or
    triggering location-based actions.

    Attributes:
        left: The first location.
        right: The second location.
    """

    left: Input[Location]
    right: Input[Location]