## Reverse geocode a coordinate `client.Geocode.Reverse(ctx, query) (*ReverseGeocodeResult, error)` **get** `/api/v1/geocode/reverse` Reverse geocode a coordinate ### Parameters - `query GeocodeReverseParams` - `Lat param.Field[float64]` Latitude - `Lng param.Field[float64]` Longitude - `Lang param.Field[string]` Language code for localized names (e.g. en, de, fr) - `Layer param.Field[string]` Filter by layer: house or poi - `Limit param.Field[int64]` Maximum results (default 1, max 20) - `Radius param.Field[int64]` Search radius in meters (default 200, max 5000) ### Returns - `type ReverseGeocodeResult struct{…}` GeoJSON FeatureCollection of reverse geocoding results - `Features []GeocodingFeature` - `Geometry GeoJsonGeometry` - `Coordinates GeoJsonGeometryCoordinatesUnion` GeoJSON coordinates array (nesting depth varies by geometry type) - `type GeoJsonGeometryCoordinatesArray []float64` - `type GeoJsonGeometryCoordinatesArray [][]float64` - `type GeoJsonGeometryCoordinatesArray [][][]float64` - `type GeoJsonGeometryCoordinatesArray [][][][]float64` - `Type GeoJsonGeometryType` - `const GeoJsonGeometryTypePoint GeoJsonGeometryType = "Point"` - `const GeoJsonGeometryTypeLineString GeoJsonGeometryType = "LineString"` - `const GeoJsonGeometryTypePolygon GeoJsonGeometryType = "Polygon"` - `const GeoJsonGeometryTypeMultiPoint GeoJsonGeometryType = "MultiPoint"` - `const GeoJsonGeometryTypeMultiLineString GeoJsonGeometryType = "MultiLineString"` - `const GeoJsonGeometryTypeMultiPolygon GeoJsonGeometryType = "MultiPolygon"` - `Properties GeocodingFeatureProperties` - `CountryCode string` ISO 3166-1 alpha-2 country code - `DisplayName string` Formatted address or place name - `DistanceM float64` Distance in meters - `OsmID int64` OpenStreetMap ID - `OsmType string` OSM element type - `Score float64` Match confidence score - `Source string` Result source (address, place, interpolation) - `Type GeocodingFeatureType` - `const GeocodingFeatureTypeFeature GeocodingFeatureType = "Feature"` - `Type ReverseGeocodeResultType` - `const ReverseGeocodeResultTypeFeatureCollection ReverseGeocodeResultType = "FeatureCollection"` ### Example ```go package main import ( "context" "fmt" "github.com/plazafyi/plaza-go" "github.com/plazafyi/plaza-go/option" ) func main() { client := githubcomplazafyiplazago.NewClient( option.WithAPIKey("My API Key"), ) reverseGeocodeResult, err := client.Geocode.Reverse(context.TODO(), githubcomplazafyiplazago.GeocodeReverseParams{ Lat: githubcomplazafyiplazago.F(0.000000), Lng: githubcomplazafyiplazago.F(0.000000), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", reverseGeocodeResult.Features) } ```