Geocode
Forward geocode an address
Forward geocode an address
Reverse geocode a coordinate
Reverse geocode a coordinate
Autocomplete a partial address
Autocomplete a partial address
Batch geocode multiple addresses
ModelsExpand Collapse
type AutocompleteResult struct{…}GeoJSON FeatureCollection of autocomplete suggestions for partial address input. Optimized for low-latency type-ahead UIs. Content-Type: application/geo+json.
GeoJSON FeatureCollection of autocomplete suggestions for partial address input. Optimized for low-latency type-ahead UIs. Content-Type: application/geo+json.
Features []GeocodingFeatureAutocomplete suggestions ordered by relevance
Autocomplete suggestions ordered by relevance
Geometry GeoJsonGeometryGeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
Coordinates GeoJsonGeometryCoordinatesUnionCoordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Properties GeocodingFeaturePropertiesGeocoding result properties
Geocoding result properties
Interpolation confidence (0-1). Present only for interpolated results.
Complete formatted address from the database. Present for reverse geocode address results.
Whether this result was estimated by address interpolation rather than an exact database match.
Relevance score (higher is better). Incorporates text match quality, spatial proximity boost, and popularity signals. Not bounded to 0-1.
Source GeocodingFeaturePropertiesSourceoptionalResult source indicating how the result was found: structured (exact field match), bm25 (full-text search), fuzzy (trigram similarity), address (reverse geocode address), place (reverse geocode POI), interpolation (estimated from neighboring addresses)
Result source indicating how the result was found: structured (exact field match), bm25 (full-text search), fuzzy (trigram similarity), address (reverse geocode address), place (reverse geocode POI), interpolation (estimated from neighboring addresses)
type GeocodeResult struct{…}GeoJSON FeatureCollection of forward geocoding results, ordered by relevance. Content-Type: application/geo+json.
GeoJSON FeatureCollection of forward geocoding results, ordered by relevance. Content-Type: application/geo+json.
Features []GeocodingFeatureGeocoding results ordered by relevance score
Geocoding results ordered by relevance score
Geometry GeoJsonGeometryGeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
Coordinates GeoJsonGeometryCoordinatesUnionCoordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Properties GeocodingFeaturePropertiesGeocoding result properties
Geocoding result properties
Interpolation confidence (0-1). Present only for interpolated results.
Complete formatted address from the database. Present for reverse geocode address results.
Whether this result was estimated by address interpolation rather than an exact database match.
Relevance score (higher is better). Incorporates text match quality, spatial proximity boost, and popularity signals. Not bounded to 0-1.
Source GeocodingFeaturePropertiesSourceoptionalResult source indicating how the result was found: structured (exact field match), bm25 (full-text search), fuzzy (trigram similarity), address (reverse geocode address), place (reverse geocode POI), interpolation (estimated from neighboring addresses)
Result source indicating how the result was found: structured (exact field match), bm25 (full-text search), fuzzy (trigram similarity), address (reverse geocode address), place (reverse geocode POI), interpolation (estimated from neighboring addresses)
type GeocodingFeature struct{…}GeoJSON Feature representing a geocoding result. The geometry is always a Point. Properties include the formatted display name, OSM metadata, confidence score, and source type.
GeoJSON Feature representing a geocoding result. The geometry is always a Point. Properties include the formatted display name, OSM metadata, confidence score, and source type.
Geometry GeoJsonGeometryGeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
Coordinates GeoJsonGeometryCoordinatesUnionCoordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Properties GeocodingFeaturePropertiesGeocoding result properties
Geocoding result properties
Interpolation confidence (0-1). Present only for interpolated results.
Complete formatted address from the database. Present for reverse geocode address results.
Whether this result was estimated by address interpolation rather than an exact database match.
Relevance score (higher is better). Incorporates text match quality, spatial proximity boost, and popularity signals. Not bounded to 0-1.
Source GeocodingFeaturePropertiesSourceoptionalResult source indicating how the result was found: structured (exact field match), bm25 (full-text search), fuzzy (trigram similarity), address (reverse geocode address), place (reverse geocode POI), interpolation (estimated from neighboring addresses)
Result source indicating how the result was found: structured (exact field match), bm25 (full-text search), fuzzy (trigram similarity), address (reverse geocode address), place (reverse geocode POI), interpolation (estimated from neighboring addresses)
type ReverseGeocodeResult struct{…}GeoJSON FeatureCollection of reverse geocoding results, ordered by distance from the query point. Content-Type: application/geo+json.
GeoJSON FeatureCollection of reverse geocoding results, ordered by distance from the query point. Content-Type: application/geo+json.
Features []GeocodingFeatureReverse geocoding results ordered by distance
Reverse geocoding results ordered by distance
Geometry GeoJsonGeometryGeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
Coordinates GeoJsonGeometryCoordinatesUnionCoordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Properties GeocodingFeaturePropertiesGeocoding result properties
Geocoding result properties
Interpolation confidence (0-1). Present only for interpolated results.
Complete formatted address from the database. Present for reverse geocode address results.
Whether this result was estimated by address interpolation rather than an exact database match.
Relevance score (higher is better). Incorporates text match quality, spatial proximity boost, and popularity signals. Not bounded to 0-1.
Source GeocodingFeaturePropertiesSourceoptionalResult source indicating how the result was found: structured (exact field match), bm25 (full-text search), fuzzy (trigram similarity), address (reverse geocode address), place (reverse geocode POI), interpolation (estimated from neighboring addresses)
Result source indicating how the result was found: structured (exact field match), bm25 (full-text search), fuzzy (trigram similarity), address (reverse geocode address), place (reverse geocode POI), interpolation (estimated from neighboring addresses)