This operation is almost exactly like GetGeoLocation, but rather than geocoding given a specific address, DOTS Address Geocode – CA will geocode given a postal code. The coordinates given are an average centroid of a given postal code and often times match precisely to the street location.
URL Endpoints
- JSON:
- XML:
GetPostalCodeInfo Inputs
| Name | Type | Description |
|---|---|---|
| Postal Code | String | The postal code to geocode. |
| License Key | String | Your license key to use the service. Sign up for a free trial key at https://www.serviceobjects.com/address-geocode/ |
GetPostalCodeInfo Outputs
| Name | Type | Values | Description |
|---|---|---|---|
| Latitude | String | Number | The latitude of the given postal code plus four. |
| Longitude | String | Number | The longitude of the given postal code plus four. |
| Postal Code | String | String | The postal code of the given input. |
| Time Zone | String | String | The time zone of the given postal code. |
| DST | String | Char | Boolean value determines if location uses daylight savings time. |
| Area Code | String | Number | The area code for the given postal code. |
| City | String | String | The city for the given postal code. |
| City Population | String | Number | The city population for the given postal code. |
| Province | String | String | The province for the given postal code. |
| Error | Error | Varies | Error object indicating why the service could not return a result. |