Address Reverse Geocode Match
Introduction
The Reverse Geocoding API by Signzy offers a seamless solution for converting geographical coordinates into detailed physical addresses. This intuitive API takes latitude and longitude inputs and returns a comprehensive address, including city, state, country, and zip code, accurately mapped to the specified coordinates. With a straightforward cURL request, users can effortlessly obtain an address along with a confidence score that indicates the accuracy of the geocoding result. This API is a reliable tool for bridging the gap between coordinate data and real-world locations, ensuring precise and efficient address retrieval.
API details
Endpoint
POST https://api.signzy.app/api/v3/geocoding/reverse-geocodePOST https://api-preproduction.signzy.app/api/v3/geocoding/reverse-geocodeRequest body parameters
Parameter | Data Type | Description | Required |
|---|---|---|---|
latitude | String | Latitude coordinates | Mandatory |
longitude | String | Longitude coordinates | Mandatory |
pinocdePriority | boolean | Only pass true if pincode is prioritized. | Optional |
{
"latitude": "12.21",
"longitude": "12.23",
"pinocdePriority":false
}Request Headers
Name | Value | Required | Description |
|---|---|---|---|
Content-type | application/json | Mandatory | The type of content that the request body contains. |
Authorization | XXXXXXXXXXXXXXX | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |
Code Samples
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api-preproduction.signzy.app/api/v3/geocoding/reverse-geocode"
method := "POST"
payload := strings.NewReader(`{
"latitude": "12.21",
"longitude": "12.23",
"pinocdePriority":false
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "<Authorization token>")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}Response body parameters
Parameter | Data type | Description |
|---|---|---|
address | String | The complete address including location details |
latitude | String | The latitude coordinate of the address |
longitude | String | The longitude coordinate of the address |
confidenceScore | Integer | Confidence score of the address information 1 means precise street address location information, 0.9 means approximations based on road intersections. 0.7 means centered on a location's geometry. 0.5 means broadly estimated. |
city | String | The city name |
state | String | The state name |
stateCode | String | The state code |
country | String | The country name |
countryCode | String | The country code |
zipcode | String | The postal code or ZIP code |
{
"address": "665H+XX MATERAM, NIGERIA",
"latitude": "12.21",
"longitude": "12.23",
"confidenceScore": 0.7,
"city": "MATERAM",
"state": "YOBE",
"stateCode": "YB",
"country": "NIGERIA",
"countryCode": "NG",
"zipcode": "620102"
}Contact Us for Any Assistance
If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at [email protected]. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.
We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!