HomeGuides › Plus Codes API: Encode and Decode Open Location Codes

Plus Codes API: Encode and Decode Open Location Codes

Plus Codes are Google's open, license-free alternative to street addresses, useful wherever addresses are missing or imprecise.

The Geo Toolkit bundles Plus Codes, geohash, Maidenhead locators, distance and bearing math, bounding boxes, and coordinate conversion in one API.

Encode a coordinate

curl
curl "https://geo-toolkit.p.rapidapi.com/plus-code/encode?lat=40.7128&lng=-74.0060" \
  -H "X-RapidAPI-Key: YOUR_KEY" \
  -H "X-RapidAPI-Host: geo-toolkit.p.rapidapi.com"

Response

A codeLength of 10 identifies a cell of roughly 14 × 14 meters.

Response (200)
{
  "code": "87G7PX7V+4H",
  "lat": 40.7128,
  "lng": -74.006,
  "codeLength": 10
}

Decode back to coordinates

GET /plus-code/decode?code=87G7PX7V%2B4H returns the cell center and its bounds. Remember to URL-encode the plus sign.

The rest of the toolkit

Geohash encode, decode, and neighbors lookups. /distance returns great-circle distance and bearing between two points. /destination projects a point from a start, bearing, and distance. /bbox builds a bounding box around a point. /coordinate converts between DD, DMS, and UTM.

Run it in production

Geo Toolkit has a permanent free tier — 1,000 requests a month, no credit card. Paid plans start at $5/month for 100,000 requests.

Get a free API key on RapidAPI ↗

Full endpoint reference →

FAQ

What is the difference between Plus Codes and what3words?

Plus Codes are an open standard, free for commercial use with no license. what3words is a proprietary commercial service.

Can I control the precision of a Plus Code?

Yes. The codeLength parameter controls cell size; longer codes give finer precision.

Is geohash also supported?

Yes. The toolkit includes geohash encode, decode, and neighbor lookup endpoints.