Geo2Tz

Geo2Tz

Lightweight REST API to resolve time zones from coordinates

91stars
17forks
Last commit: 1mo ago
Repo age: 6y old

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:

Share:

Similar Services

Hoppscotch Community Edition

Hoppscotch Community Edition

Open-source API client for REST, GraphQL, WebSocket and more

77.6k
5.5k
Last commit: 11d ago

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.

Alternative to:
Postman
Postman
+9
Kong Gateway

Kong Gateway

Cloud-native API and LLM gateway with extensible plugins

42.5k
5k
Last commit: 2mo ago

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.

Alternative to:
Amazon API Gateway
Amazon API Gateway
+7
Apprise

Apprise

Unified notifications library for 120+ services via a single API.

15.5k
554
Last commit: 4d ago

A Python-based notification library and CLI that routes messages to 120+ services via URL-based configurations, enabling self-hosted cross-platform alerts.

Alternative to:
Twilio
Twilio
+4
Maxun

Maxun

Open source no-code web scraping and data extraction robots

14.2k
1.1k
Last commit: 5d ago

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.

Alternative to:
Apify
Apify
+1
LibreTranslate

LibreTranslate

Self-hosted machine translation API powered by open-source models

13.5k
1.4k
Last commit: 25d ago

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.

Alternative to:
Google Translate
Google Translate
FlareSolverr

FlareSolverr

API proxy that solves Cloudflare challenges using a headless browser

12.2k
991
Last commit: 4d ago

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.

Alternative to:
Browserless
Browserless
+7