Geo2Tz
Lightweight REST API to resolve time zones from coordinates
Geo2Tz is a minimal, self-hostable HTTP service that returns the IANA time zone identifier for a pair of geographic coordinates (latitude, longitude). It exposes a simple REST-like endpoint and uses prebuilt timezone polygon data to map coordinates to time zones.
Key Features
- Single REST endpoint GET /tz/{lat}/{lon} that returns JSON with coordinates and the matched IANA timezone
- Uses timezone polygon data produced from the timezone-boundary-builder project for accurate boundaries
- Distributed as a single Go binary and official container image, with Docker Compose and Kubernetes examples
- CLI command to update or pin the timezone dataset (update current/latest/specific-version)
- Optional token-based request authorization via environment variables
- Small, production-focused codebase written in Go, suitable for embedding in infrastructure or edge services
Use Cases
- Provide privacy-preserving timezone lookup for mobile or web apps without sending coordinates to third parties
- Add timezone resolution to logging, scheduling, or event-processing pipelines based on geolocated data
- Deploy as an internal microservice for geospatial backends and API gateways
Limitations and Considerations
- Requires downloading and maintaining the timezone polygon dataset; initial dataset can be sizable and needs storage
- Designed for single-coordinate lookups; no built-in batch lookup API or web UI
- Accuracy depends on the underlying timezone-boundary-builder dataset; edge cases near boundaries may require dataset updates
Geo2Tz is focused on a single, well-scoped problem and is suitable when you need a lightweight, self-hosted timezone resolution service. It is intended for deployments where privacy and control over coordinate data are important.
Categories:
Tags:
Tech Stack:
Similar Services

Hoppscotch Community Edition
Open-source API client for REST, GraphQL, WebSocket and more
Hoppscotch Community Edition is an open-source API development and testing tool for REST, GraphQL, WebSocket, SSE, MQTT, and Socket.IO with collections and environments.

Kong Gateway
Cloud-native API and LLM gateway with extensible plugins
Kong Gateway is a high-performance, cloud-native API gateway for routing, securing, and observing API traffic, with an extensible plugin system and Kubernetes support.

Apprise
Unified notifications library for 120+ services via a single API.
A Python-based notification library and CLI that routes messages to 120+ services via URL-based configurations, enabling self-hosted cross-platform alerts.

Maxun
Open source no-code web scraping and data extraction robots
Maxun is an open source no-code platform to build web scraping robots that extract structured data and expose websites as APIs, markdown, or automated pipelines.


LibreTranslate
Self-hosted machine translation API powered by open-source models
LibreTranslate is a free, open-source machine translation API you can run on your own infrastructure, with offline-capable translations and a simple HTTP API.
FlareSolverr
API proxy that solves Cloudflare challenges using a headless browser
FlareSolverr is a proxy server with a REST API that uses a headless Chrome session to solve Cloudflare/DDoS-GUARD challenges and return HTML and cookies.
Go
JSON
Docker
GNU Make