skillfed

placekey

Utilities for working with Placekeys

placekey v0.0.36 86.5K downloads/30d#13,857 on PyPI
Permissive license AGING released

What it is and what it does

Placekey-py is a Python client for the Placekey location encoding system, which assigns unique identifiers to geographic places based on coordinates or addresses. The library provides three main functions: local conversion between Placekeys and latitude-longitude pairs or H3 indices (no network calls required), distance calculations between Placekeys, and an API client for batch geocoding through the Placekey service. The API client handles rate limiting automatically and integrates with pandas for bulk operations.

The package depends on h3, shapely, requests, ratelimit, backoff, boto3, and pandas. It's useful for teams that need a standardized location identifier across datasets or systems, or for accessing Placekey's public datasets stored in S3. The local conversion functions work offline, while the API client requires authentication and network access.

Use it for:

  • Standardize location data across multiple datasets by converting addresses or coordinates to Placekeys for consistent joins.
  • Batch geocode addresses through the Placekey API with automatic rate limiting and confidence scores.
  • Calculate distances between locations encoded as Placekeys without repeated coordinate lookups.
  • Access and download Placekey's free public datasets (e.g., business locations) from S3.
  • Validate Placekey format in data pipelines before downstream processing.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Converts between Placekeys (location identifiers), geographic coordinates, and H3 indices; includes an API client for batch geocoding and dataset access.

Yes, if you need Placekey integration. The package is stable (no known vulnerabilities), has low install friction, and the permissive license poses no risk. However, the aging maintenance status (540 days since last release) and reliance on an external service for API features mean you should verify that the Placekey service itself meets your availability and support expectations before committing to it as a core dependency.

Install

placekey on PyPI

pip

pip install placekey

uv

uv add placekey

poetry

poetry add placekey

Installing placekey

Before you install

Low friction: pure Python wheel with no compiled dependencies beyond shapely (which may require system GEOS on macOS Big Sur). Aging maintenance status—last release 540 days ago—but no active vulnerabilities and Python 3.8+ support remains current.

License in practice

Apache 2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install placekey

import placekey as pk

# Convert lat/long to Placekey
placekey = pk.geo_to_placekey(37.7371, -122.44283)
print(placekey)  # '@5vg-82n-kzz'

# Convert Placekey back to coordinates
lat, lon = pk.placekey_to_geo('@5vg-82n-kzz')
print(lat, lon)

macOS Big Sur may require `brew install geos` before shapely installs successfully.

Verify before relying

  • Whether the API client requires an active Placekey API key and whether free tier access is available.
  • Current state of the Placekey service itself and whether the API endpoints remain stable.
  • Performance characteristics for batch operations on large DataFrames via the pandas integration.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 7 — h3, shapely, requests, ratelimit, backoff, boto3, pandas
Maintenance aging — 540 days since the last release
First released
Downloads 86,504/month — #13,857 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: placekey-0.0.36-py3-none-any.whl

License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

placekey geocodinglocation identifier conversionh3 index to coordinatesbatch place lookup apigeographic coordinate encodingplacekey api clientlocation standardization
geocodinglocation-datageospatial

More Utilities packages