[Home](https://helqu.com/) / [Products](https://helqu.com/products) / Geo-svc
# Geo-svc
Geo-svc serves a country-to-street location hierarchy, a point-of-interest (POI) index and road-network distance as a single read-only reference API. Several hotel systems get their location data from it instead of keeping their own address data. Commercial fields have been moved to a separate service; Geo-svc stays pure geography and passes place changes to the other service through an event stream.

- **What it does:** Serves a country-to-street location hierarchy, a POI index, geocoding, autocomplete and road distance/matrix with Valhalla.
- **Who it is for:** Teams that want to feed several products that need location, address and surroundings data from a single source. Currently 3+ hotel systems are consumers.
- **How it works:** .NET 8, PostgreSQL 16 + PostGIS + ltree, Redis, Meilisearch, Valhalla. Deployed on Kubernetes with a separate migrate job.
## Features

- **Location hierarchy**: Country, city, district, neighborhood, street. Hierarchical queries with an ltree path, radius queries with PostGIS geography. Responses come in multiple languages based on the Accept-Language header.
- **POI index and discovery**: A category tree and external ID mapping. Azure Maps and OSM Overpass providers sit behind a router, and if one fails it switches to the other. Automatic discovery with crawl records.
- **Geocoding and autocomplete**: Forward and reverse geocoding, suggestion endpoints. Search lives in Meilisearch; data is synced through an outbox, and reindexing is done blue-green.
- **Road-network distance**: Road distance, travel time and matrix with a self-hosted Valhalla. Straight-line distance and road distance are deliberately kept separate.
- **Avoidance routing**: Hard constraints, budget arithmetic and a filter layer. If a constraint cannot be met it returns 422; if the routing engine is unavailable it returns 503; the two are never mixed up.
- **Nearby**: Finding an address from a location and listing surrounding places in a single call.
- **Event stream**: Every place change is written to the outbox; a processor forwards it to Meilisearch and to the geo.place.events Redis stream. The other service builds its own read model from this stream.
- **Scale and observability**: A two-tier cache (in-memory and distributed, with broadcast invalidation), 3-20 pod autoscaling, PgBouncer, scheduled jobs with leader election, OpenTelemetry and Prometheus.
## Each product with its own address data vs Geo-svc

- **Source**: Each system keeps its own addresses / A single read-only reference API
- **Structure**: Flat address fields / A country-to-street ltree hierarchy
- **Distance**: As the crow flies / Road-network distance and matrix with Valhalla
- **Language**: Single language / Multilingual responses with Accept-Language
- **Updates**: Manual sync / Propagated through an outbox and an event stream
## Important note
While building Geo-svc, we choose what is simple, consistent and fast in interfaces and deliverables.

With Geo-svc, we proceed in short cycles and show working results at the end of each one.

---
Source: https://helqu.com/products/geo-svc
Title: Geo-svc — Geography and POI service | Helqu
Description: Geo-svc serves a country-to-street location hierarchy, a point-of-interest (POI) index and road-network distance as a single read-only reference API.…
Language: en
Alternates: tr=https://helqu.com/tr/calismalar/geo-svc.md de=https://helqu.com/de/produkte/geo-svc.md fr=https://helqu.com/fr/produits/geo-svc.md ru=https://helqu.com/ru/produkty/geo-svc.md ar=https://helqu.com/ar/muntajat/geo-svc.md
