Reverse Geocode

Reverse-geocode the addresses

This API takes latitude/longitude coordinates for a point as input and returns address information that is the best match for that point. It can take single input address or multiple input addresses and returns standardized US or international address and geocoding information. The Reverse-Geocode API supports global coverage.

post/v1/reverse-geocode

Request

  • Base URL: https://api.cloud.precisely.com
  • URL: https://api.cloud.precisely.com/v1/reverse-geocode
  • Auth: one of:
    • HTTP bearer
    • API key in header Authorization

Headers

X-Request-Idstring

The X-Request-Id header is optional but incredibly useful for developers. It serves as a unique identifier for requests within our system. When you encounter any problems with your requests, providing us with the X-Request-Id will enable us to pinpoint the specific request in question without the need for extensive manual searching. This means faster and more efficient troubleshooting. The maximum allowed length is 38 characters.

Request body

Example request

{
  "preferences": {
    "maxResults": 1,
    "returnAllInfo": true,
    "factoryDescription": {
      "label": "asd",
      "featureSpecific": {
        "LOOKUP": "ggs"
      }
    },
    "customPreferences": {
      "DATA_OPTION": "PREMIUM"
    },
    "clientLocale": {
      "language": "en",
      "script": "Latn",
      "country": "US",
      "variant": "POSIX",
      "unicodeLocaleAttributes": [
        "attribute1",
        "attribute2"
      ],
      "unicodeLocaleKeys": {
        "nu": "thai"
      },
      "extensionKeys": {
        "x": "private-use"
      }
    },
    "clientCoordSysName": "EPSG:4326",
    "distance": {
      "value": 5,
      "distanceUnit": "METER"
    },
    "streetOffset": {
      "value": 5,
      "distanceUnit": "METER"
    },
    "cornerOffset": {
      "value": 5,
      "distanceUnit": "METER"
    },
    "matchMode": "EXACT",
    "originXY": [
      0,
      0
    ],
    "returnOfAdditionalFields": [
      "RESULT_CODE",
      "PRECISION_CODE"
    ]
  }
}

Response

Location reverse-geocoded successfully

Example response

{
  "responses": [
    {
      "addressId": "1",
      "errorMessage": "Not able to identify ABC country",
      "status": "OK",
      "results": [
        {
          "score": 95,
          "addressLines": [
            "350 Jordan Ave",
            "Montoursville PA 17754"
          ],
          "explanation": {
            "identifier": "Geocoder",
            "addressMatch": {
              "description": [
                {
                  "label": "streetName",
                  "matchType": "EXACT",
                  "returnType": "INPUT",
                  "matchedSubstring": "350 Jordan"
                }
              ],
              "type": "STREET"
            },
            "source": {
              "label": "ggs"
            }
          },
          "address": {
            "street": "DISTRICT",
            "formattedAddress": "1700 DISTRICT AVE STE 300, BURLINGTON MA 01803-5231, United States",
            "formattedStreetAddress": "1700 DISTRICT AVE STE 300",
            "formattedLocationAddress": "BURLINGTON, MA  01803-5231",
            "addressNumber": "630",
            "country": {
              "name": "UNITED STATES",
              "isoAlpha2Code": "US",
              "isoAlpha3Code": "USA",
              "isoNumericCode": "840"
            },
            "admin1": {
              "longName": "New York or Maharashtra",
              "shortName": "NY"
            },
            "admin2": {
              "longName": "New York or Maharashtra",
              "shortName": "NY"
            },
            "city": {
              "longName": "New York or Maharashtra",
              "shortName": "NY"
            },
            "borough": {
              "longName": "New York or Maharashtra",
              "shortName": "NY"
            },
            "neighborhood": {
              "longName": "New York or Maharashtra",
              "shortName": "NY"
            },
            "suburb": {
              "longName": "New York or Maharashtra",
              "shortName": "NY"
            },
            "postalCode": "80125",
            "postalCodeExt": "8012",
            "placeName": "PRIME MINISTER & FIRST LORD OF THE TREASURY",
            "building": "Empire State",
            "floor": "65",
            "room": "A1",
            "unit": "3B",
            "unitType": "STE"
          },
          "location": {
            "explanation": {
              "type": "ADDRESS_POINT",
              "description": "STREET_BLOCK",
              "designation": "CENTROID",
              "additionalMetadata": {
                "SOURCE": "PRECISELY"
              }
            },
            "feature": {
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -73.704719,
                  42.682251
                ],
                "foreignMembers": {
                  "city": "New York",
                  "population": "8419600",
                  "founded": "1624"
                }
              },
              "properties": {
                "crsName": "epsg:4326"
              },
              "type": "Feature"
            }
          },
          "customFields": {
            "NAME_SHORT": "DISTRICT",
            "PLACE": "2509875",
            "CITY_SHORT": "BURLINGTON"
          },
          "parsed": [
            {
              "score": 0,
              "classifications": [
                {
                  "label": "street",
                  "value": "DISTRICT"
                }
              ]
            }
          ],
          "iso20022": {
            "address": {
              "type": "PostalAddress27",
              "format": "STRUCTURED",
              "elements": {
                "StrtNm": "Main Street",
                "BldgNb": "123",
                "BldgNm": "Tech Plaza",
                "UnitNb": "5A",
                "Room": "301",
                "PstBx": "PO Box 456",
                "PstCd": "12345",
                "TwnNm": "Springfield",
                "TwnLctnNm": "Downtown",
                "DstrctNm": "Central District",
                "CtrySubDvsn": "CA",
                "Ctry": "US"
              }
            }
          }
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.