Clint Ramey / Service Area Module

Reusable geography module

Define the territory.
Explain the decision.

This demo exercises the underlying TypeScript module. It supports multiple origins, multiple radius rules, exclusion areas, polygon territories, and replaceable distance providers without adding pricing or customer workflow.

Module configuration

Check a location

Module result

Ready to check

Configure one or more origins, then check a location.

--miles away
Measured from
Not checked
Checked location
Not checked
Deciding area
--
Boundary margin
--
Calculation method
--

The bundled provider uses straight-line distance. Applications can inject a road-distance provider through the same module interface.

01

Compose areas

Combine named origins, radius rules, polygons, and explicit exclusions.

02

Explain results

Receive every check, every match, the deciding rule, method, and remaining boundary.

03

Swap providers

Use Haversine by default or inject a road-distance and drive-time implementation.

Developer view: configuration and typed result