Geohash icon

Geohash

Encode and decode Geohashes using latlon-geohash

Encode (Lat/Lon to Hash)

AI-generated

Summary

Converts a latitude and longitude coordinate pair into a geohash string using a specified precision.

Inputs

  • latitude (required) — The latitude coordinate to encode.
  • longitude (required) — The longitude coordinate to encode.
  • precision — The desired length of the resulting geohash string (default: 10).

Output shape

A single record containing the generated geohash string in a 'geohash' property.

The operation processes one item at a time. If configured to continue on error, failed encodings return an item with an 'error' property containing the exception message.

Examples

Example 1: Convert a specific city center location to a 6-character geohash.

Set Latitude to 51.5074, Longitude to -0.1278, and Precision to 6.

Example 2: Encode a set of locations from a previous node with a default precision.

Connect an output node and leave the default Latitude, Longitude, and Precision (10).

Links

Discussion