Skip to content
GuidesPlaygroundDashboard

Reverse geocode a coordinate

ReverseGeocodeResult Geocode.Reverse(GeocodeReverseParamsparameters, CancellationTokencancellationToken = default)
GET/api/v1/geocode/reverse

Reverse geocode a coordinate

ParametersExpand Collapse
GeocodeReverseParams parameters
required Double lat

Latitude

required Double lng

Longitude

string lang

Language code for localized names (e.g. en, de, fr)

string layer

Filter by layer: house or poi

Long limit

Maximum results (default 1, max 20)

Long radius

Search radius in meters (default 200, max 5000)

ReturnsExpand Collapse
class ReverseGeocodeResult:

GeoJSON FeatureCollection of reverse geocoding results

required IReadOnlyList<GeocodingFeature> Features
required GeoJsonGeometry Geometry
required Coordinates Coordinates

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
IReadOnlyList<Double>
IReadOnlyList<IReadOnlyList<Double>>
IReadOnlyList<IReadOnlyList<IReadOnlyList<Double>>>
IReadOnlyList<IReadOnlyList<IReadOnlyList<IReadOnlyList<Double>>>>
required Type Type
One of the following:
"Point"Point
"LineString"LineString
"Polygon"Polygon
"MultiPoint"MultiPoint
"MultiLineString"MultiLineString
"MultiPolygon"MultiPolygon
required Properties Properties
string? CountryCode

ISO 3166-1 alpha-2 country code

string DisplayName

Formatted address or place name

Double? DistanceM

Distance in meters

Long? OsmID

OpenStreetMap ID

string? OsmType

OSM element type

Double? Score

Match confidence score

string? Source

Result source (address, place, interpolation)

required Type Type
required Type Type

Reverse geocode a coordinate

GeocodeReverseParams parameters = new()
{
    Lat = 0,
    Lng = 0,
};

var reverseGeocodeResult = await client.Geocode.Reverse(parameters);

Console.WriteLine(reverseGeocodeResult);
Returns Examples