All examplesGeocoding
Reverse geocode a point
Reverse geocoding goes the other way: a longitude and a latitude become the nearest place. Results are ordered by real-world distance, not by relevance.
live result
the code that produced it
import { Unmap } from "@unmap/sdk";
const unmap = new Unmap({ key: "um_live_..." });
const here = await unmap.geocoder.reverse(-114.0719, 51.0447);Pass longitude first. The answer is still an array. A downtown point usually comes back as an address; a point in a park or on the water comes back as whatever is nearest in the corpus.
There is no cross-border reverse lookup. A coordinate in the United States returns whatever Canadian row is nearest, which is the wrong answer, or an empty array.
The Geocoding API documents the reverse endpoint.