[Developers]

Geospatial Proximity Search Engine

When a cardiac arrest call comes in, the dispatcher does not want to scan a map manually looking for the nearest defibrillator-equipped unit. The answer needs to appear instantly, filtered by availability, and ranked by

Category: GeospatialLast Updated: Feb 23, 2026
geospatialreal-time

title: "Geospatial Proximity Search Engine" description: "High-performance spatial query platform for radius searches, nearest neighbor detection, and k-NN queries across large geographic point datasets" category: "geospatial" icon: "location-search" audience: ["Emergency Dispatchers", "Resource Coordinators", "Fleet Operations", "GIS Analysts"] capabilities:

  • "Radius-based proximity searches"
  • "Nearest neighbor and k-NN queries"
  • "Route-aware distance calculations"
  • "Real-time spatial indexing"
  • "Multi-criteria spatial filtering" integrations: ["Dispatch Systems", "Fleet Management", "Resource Allocation", "Mapping Platforms"]

Geospatial Proximity Search Engine#

Overview#

When a cardiac arrest call comes in, the dispatcher does not want to scan a map manually looking for the nearest defibrillator-equipped unit. The answer needs to appear instantly, filtered by availability, and ranked by actual road travel time rather than straight-line distance. That distinction matters: the geographically closest unit on the wrong side of a motorway interchange may be two minutes slower than the second-closest.

The Proximity Search Engine delivers sub-second query results across large geographic point datasets. Radius searches, nearest neighbor queries, and k-NN analysis combine with route-aware distance calculations and multi-criteria filtering to give dispatchers, coordinators, and applications the right resource at the right moment. The engine indexes position updates in real time, so the results always reflect current locations rather than stale data.

Key Features#

  • Find all entities within a specified distance from any geographic point
  • Geodesic distance calculations account for Earth's curvature for accurate results at any scale
  • Configurable distance units: meters, kilometres, miles, and nautical miles
  • Results sorted by distance with precise distance values included
  • Support for both geographic coordinates and address-based search origins

Nearest Neighbor Queries#

  • Find the closest entity to any point regardless of search radius
  • K-nearest neighbor (k-NN) queries return the N closest entities
  • Category-filtered nearest search finds closest entity of a specific type or capability
  • Tie-breaking logic for entities at equal distances
  • Availability-aware search considers entity status: available, busy, or offline

Route-Aware Distance#

  • Driving distance and travel time estimates supplement straight-line geodesic distance
  • Traffic-aware calculations consider current road conditions for realistic ETAs
  • Multi-mode distance calculations for driving, walking, and transit
  • Road network distance provides more operationally relevant proximity than geodesic distance alone
  • Estimated time of arrival calculations for resource deployment planning

Real-Time Spatial Indexing#

  • Position updates are indexed immediately for inclusion in subsequent queries, with no polling delay
  • Index optimisation maintains fast query performance as dataset size grows
  • Support for millions of indexed geographic points
  • Batch indexing for bulk data loading and migration
  • Index health monitoring ensures consistent query performance under load

Multi-Criteria Filtering#

  • Combine proximity with attribute filters: status, type, capability, and availability
  • Temporal filters limit results to entities active within specific time windows
  • Capacity filters find nearby resources with available capacity
  • Skill-based filters match proximity search with resource qualifications
  • Custom attribute filters for organisation-specific requirements such as clearance level or equipment type

Use Cases#

Emergency Dispatch#

Dispatchers find the nearest available unit to an incident location, filtered by unit type and capability. Route-aware distance ensures the operationally closest unit is selected, not just the geographically nearest unit that may be blocked by traffic or a physical barrier.

Resource Allocation#

Resource coordinators identify all available assets within a specified radius of a demand point for deployment planning, capacity assessment, and coverage gap analysis during surge periods.

Service Territory Validation#

Operations teams verify that service requests fall within assigned territories and identify the nearest qualified service provider for assignment when the primary territory resource is unavailable.

Coverage Analysis#

Planners assess geographic coverage by querying how many resources fall within response-time thresholds of population centres and critical facilities, identifying areas that need additional deployment to meet service level targets.

Integration#

Connected Systems#

  • Dispatch and CAD systems for closest-unit determination in real-time operations
  • Fleet management platforms for nearest-vehicle queries and territory coverage
  • Resource allocation systems for coverage and capacity analysis
  • PostGIS for spatial database proximity queries at scale
  • Interactive mapping with multiple layer support for spatial query result visualisation

Open Standards#

  • GeoJSON (IETF RFC 7946): All spatial query inputs, feature results, and bounding-box responses are encoded as GeoJSON FeatureCollections and Geometry objects, ensuring compatibility with any RFC 7946 compliant mapping client.
  • OGC Web Feature Service 2.0.2 (ISO 19142): The engine exposes and consumes spatial features via OGC WFS GetCapabilities, GetFeature, and stored-query operations, enabling interoperability with GeoServer and standards-compliant GIS tooling.
  • OGC Filter Encoding 2.0 (ISO 19143): Spatial, temporal, and attribute predicates used in multi-criteria proximity queries conform to the OGC Filter Encoding standard, supporting ImplementsSpatialFilter and ImplementsTemporalFilter conformance classes.
  • ISO 19125 / SQL/MM Spatial Part 3: Radius and nearest-neighbour queries are executed against a PostGIS spatial index using ISO 19125-compliant geometry functions (ST_GeomFromGeoJSON, ST_Distance, ST_AsGeoJSON), providing the high-performance spatial indexing layer.
  • WGS 84 (EPSG:4326 / OGC CRS84): All coordinate data is stored and queried in WGS 84 geographic coordinates, and geodesic distance calculations use the WGS 84 ellipsoid mean Earth radius to account for Earth's curvature.
  • OGC SensorThings API (OGC 18-088r2): Sensor and IoT entity positions ingested as SensorThings Observation entities are spatially indexed and available as proximity-search candidates alongside tracked operational entities.
  • GraphQL (June 2018 specification): Proximity search queries, k-NN requests, and multi-criteria spatial filters are all exposed through a typed GraphQL API, allowing callers to request exactly the fields and distance metrics required.

Last Reviewed: 2026-02-23 Last Updated: 2026-04-14

Ready to Build?

Get started with our APIs or contact our integration team for support.