Geo2Tz

Lightweight REST API to resolve time zones from coordinates

98 stars 17 forks last commit first released MIT

Actively maintained

Last commit 1 Aug 2026.

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 to Geo2Tz

openrouteservice logo

openrouteservice

Open-source routing and geospatial API for directions and analytics

2k
481
Last commit

OpenRouteService is an open-source REST API providing routing, isochrones, matrices, geocoding, POIs, elevation and vehicle-optimization services built from OpenStreetMap data.

GPL-3.0Actively maintained
Alternative to:
NextBillion.ai Directions API logo
NextBillion.ai Directions API
Shhh logo

Shhh

One-time encrypted secret sharing web app

416
31
Last commit

Tiny Flask app to create encrypted, expiring secrets shareable via private links. Secrets are encrypted and deleted after viewing, expiration, or max attempts.

MITActively maintained
Alternative to:
Onetime Secret logo
Onetime Secret
+1
Lura logo

Lura

High-performance API gateway framework with extensible middleware

6.8k
582
Last commit

Lura is a stateless, high-performance API gateway framework for building reverse proxies that aggregate, transform, and secure backend APIs via middleware and plugins.

Actively maintained
Alternative to:
Amazon API Gateway logo
Amazon API Gateway
+9

docker-staticmaps

Lightweight REST API for generating static map images

129
8
Last commit

Open-source REST API to render static map images with markers, polygons, polylines and text; supports multiple basemaps, caching, rate limiting and Docker deployment.

Actively maintained
Memos logo

Memos

Privacy-first self-hosted note-taking and knowledge base

62.6k
4.7k
Last commit

Memos is a lightweight, privacy-first self-hosted note-taking service with Markdown, fast search, and sharing features for personal notes, wikis, and team knowledge.

MITActively maintained
Alternative to:
Memos Cloud logo
Memos Cloud
+19
Gotenberg logo

Gotenberg

Containerized API for document conversion and PDF generation

12.9k
846
Last commit

Gotenberg is a containerized HTTP API that converts HTML, Markdown, and Office documents to PDF using engines like Chromium and LibreOffice, with options to merge and automate outputs.

MITActively maintained
Alternative to:
PDFShift logo
PDFShift
+9