qmetrics.net

Open Location Code

Plus Codes library for offline location encoding

Open Location Code screenshot

Open Location Code encodes latitude and longitude into short Plus Codes for places without street addresses. Language implementations expose encode, decode, shorten, and recover routines usable without online lookup tables.

Overview

Open Location Code defines Plus Codes, compact location strings derived from latitude and longitude that include a plus sign after the eighth digit. Codes represent areas whose size shrinks as more characters are appended, and nearby codes tend to be similar in prefix.

A full code can be created and decoded entirely offline with public algorithms and no database of places. Shortened codes drop leading digits when everyone shares a regional reference; recovering them needs the short form plus a nearby latitude-longitude anchor, and geocoding may be required if the anchor is a place name.

Digit sequences alternate latitude and longitude contributions from a 20-character alphabet. Grid refinement after ten digits narrows the area further. The project ships sample implementations and tests in multiple languages, each exposing validation, standard encoding, variable-length encoding, decoding to bounds, shortening, and extension helpers.

Plus Codes are positioned as digital addresses where formal street addressing is missing, for deliveries, services, and sharing locations. Public web materials describe consumer use through map pins, while the codebase focuses on the core encoding technology rather than running a geocoding service.

Key features

  • Encode coordinates to Plus Codes
  • Decode codes to area bounds
  • Offline full encode and decode
  • Shorten codes with a reference point
  • Extend shortened codes nearby
  • Validate code strings
  • Multi-language reference libraries
  • Variable precision code length

Use cases

  • Digital addresses without street names
  • Sharing precise spots offline
  • Embedding location in apps or services
  • Regional short codes with anchors
  • Comparing location encoding schemes

Tags

Similar software

Leaflet

Lightweight JavaScript library for interactive maps

Leaflet embeds pan-zoom maps in web pages with markers, vector layers, and controls. It targets browsers with a small footprint and an extension plugin ecosystem.

  • Tile layers and WMS support
  • Markers, popups, and tooltips
  • Polylines, polygons, and GeoJSON
JavaScriptWebDetails →
★ 46k⟳ todayBSD-2-Clause
Open Source Alternative to:Mapbox

react-native-maps

Declarative map components for React Native mobile apps

react-native-maps provides MapView and map child components for iOS and Android React Native apps. Markers, polygons, overlays, and region control use a React-like declarative API.

  • MapView with declarative marker children
  • Polylines, polygons, and tile overlays
  • Custom marker images and React callouts
TypeScriptAndroid, iOSDetails →
★ 16k⟳ 2 months agoMIT

CesiumJS

JavaScript library for 3D globes and web maps

CesiumJS renders interactive 3D globes and 2D maps in the browser with WebGL, streaming terrain, imagery, 3D Tiles, and time-dynamic geospatial data.

  • WebGL 3D globe and 2D maps
  • 3D Tiles and glTF models
  • Terrain and imagery streaming
JavaScriptWebDetails →
★ 16k⟳ todayApache-2.0

prettymaps

Custom map plots from OpenStreetMap with Python

prettymaps fetches OpenStreetMap data and renders styled map images using osmnx, matplotlib, shapely, and vsketch.

  • OpenStreetMap layer fetching
  • Matplotlib style per layer
  • JSON map presets
PythonDetails →
★ 14.4k⟳ 4 months agoAGPL-3.0

OpenLayers

High-performance JavaScript library for interactive web maps

OpenLayers renders tiled maps, vectors, and markers in the browser from diverse sources. Install the ol npm package and import only the modules your page needs.

  • XYZ and OGC tiled layers
  • GeoJSON and vector tile support
  • Canvas 2D and WebGL rendering
JavaScriptDetails →
★ 12.7k⟳ todayBSD-2-Clause

MapLibre GL JS

Browser library for interactive vector tile maps

MapLibre GL JS renders map styles with WebGL from vector tiles in web pages or webviews. It continues the open mapbox-gl-js lineage after Mapbox’s license change.

  • WebGL vector tile rendering
  • MapLibre Style Spec styling
  • Markers, popups, and map controls
TypeScriptWebDetails →
★ 12.2k⟳ todayBSD-3-Clause
Open Source Alternative to:Mapbox