Geo nearest

Shipped

Routes to the geographically closest recipient.

Example

How Geo nearest decides — the pool is evaluated and the winner is assigned. Each strategy selects differently.

type == "lead"selectedTriggerNew LeadWebhookNearestGeo nearestStrategyae-west4 miae-east12 micentral30 miAssigned
Show the code
// Geo nearest selects from the pool and assigns.
engine.Route(ductor.Route{
Match: `routable.type == "lead"`,
Strategy: "geo_nearest",
Pool: "sales-team",
})
 
// Durable, observable, exactly-once.
decision, err := engine.Dispatch(ctx, routable)

How it works

Routes to the nearest recipient by location, falling back when no location is known. Optional geographic module.

Geo-aware