Example: Parse JSON POST Request & Response (Addressing API) - geo_addressing_sdk - 5.0

Geo Addressing SDK Developer Guide

Product type
Software
Portfolio
Locate
Product family
Geo Addressing
Product
Geo Addressing SDK
Version
5.0
Language
English
Product name
Geo Addressing SDK
Title
Geo Addressing SDK Developer Guide
Copyright
2023
First publish date
2007
Last updated
2024-11-14
Published on
2024-11-14T12:57:29.533342

Parse Request

{
  "preferences": {
    "maxResults": 1,
    "returnAllInfo": true,
    "factoryDescription": {
      "label": "",
      "featureSpecific": {}
    },
    "clientLocale": "",
    "clientCoordSysName": "",
    "distance": {
      "value": 150,
      "distanceUnit": "METER"
    },
    "streetOffset": {
      "value": 7,
      "distanceUnit": "METER"
    },
    "cornerOffset": {
      "value": 7,
      "distanceUnit": "METER"
    },
    "customPreferences": {}
  },
  "address": {
    "addressLines": [
      "350 Jordan Road Troy NY 12180"
    ],
    "country": "USA",
    "addressNumber": "",
    "admin1": "",
    "admin2": "",
    "city": "",
    "borough": "",
    "neighborhood": "",
    "suburb": "",
    "postalCode": "",
    "postalCodeExt": "",
    "placeName": "",
    "building": "",
    "floor": "",
    "room": "",
    "unit": "",
    "unitType": ""
  }
}

Parse Response

{
  "status": "OK",
  "parsed": [
    {
      "classifications": [
        {
          "label": "street",
          "value": "JORDAN"
        },
        {
          "label": "admin1",
          "value": "NY"
        },
        {
          "label": "city",
          "value": "TROY"
        },
        {
          "label": "addressNumber",
          "value": "350"
        },
        {
          "label": "postalCode",
          "value": "12180"
        },
        {
          "label": "country",
          "value": "USA"
        },
        {
          "label": "streetSuffix",
          "value": "RD"
        }
      ]
    }
  ]
}