Resource URL
JSON endpoint:
https://OnDemandServer/rest/GlobalTypeAheadUSA/results.json
XML endpoint:
https://OnDemandServer/rest/GlobalTypeAheadUSA/results.xml
For a list of Spectrum OnDemand servers, see Connecting to Spectrum OnDemand Servers.
Example with JSON Response
The following example requests a JSON response:
https://spectrum.precisely.com/rest/GlobalTypeAheadUSA/results.json?​Data.AddressLine1=50%20water
The JSON returned by this request would be:
{
"Output": [
{
"AddressLine1": "50 Water Dr",
"StateProvince": "NC",
"PostalCode": "27553",
"City": "Manson",
"ProcessedBy": "GTA",
"InstanceKey": "ACUjMTMTU5NDY2MDU4OTUwOAMT01Mj",
"FormattedAddress": "50 Water Dr, Manson, NC 27553",
"Ranges": [
],
"user_fields": [
]
},
{
"AddressLine1": "50 Water Hill Way",
"StateProvince": "NC",
"PostalCode": "28732",
"City": "Fletcher",
"ProcessedBy": "GTA",
"InstanceKey": "ACUjMTMTU5NDY2MDU4OTUwOAMT01Mj",
"FormattedAddress": "50 Water Hill Way, Fletcher, NC 28732",
"Ranges": [
],
"user_fields": [
]
},
{
"AddressLine1": "50 Water Brook Rd",
"StateProvince": "NY",
"PostalCode": "10930",
"City": "Highland Mills",
"ProcessedBy": "GTA",
"InstanceKey": "ACUjMTMTU5NDY2MDU4OTUwOAMT01Mj",
"FormattedAddress": "50 Water Brook Rd, Highland Mills, NY 10930",
"Ranges": [
],
"user_fields": [
]
},
{
"AddressLine1": "50 N Water Ave",
"StateProvince": "PA",
"PostalCode": "16146",
"City": "Sharon",
"ProcessedBy": "GTA",
"InstanceKey": "ACUjMTMTU5NDY2MDU4OTUwOAMT01Mj",
"FormattedAddress": "50 N Water Ave, Sharon, PA 16146",
"Ranges": [
],
"user_fields": [
]
},
{
"AddressLine1": "50 S Water Ave",
"StateProvince": "PA",
"PostalCode": "16146",
"City": "Sharon",
"ProcessedBy": "GTA",
"InstanceKey": "ACUjMTMTU5NDY2MDU4OTUwOAMT01Mj",
"FormattedAddress": "50 S Water Ave, Sharon, PA 16146",
"Ranges": [
],
"user_fields": [
]
}
]
}
Example with XML Response
The following example requests an XML response:
https://spectrum.precisely.com/rest/GlobalTypeAheadUSA/results.xml?Data.AddressLine1=50%20water
The XML returned by this request would be:
<xml.GlobalTypeAheadUSAResponse xmlns="http://www.pb.com/spectrum/services/GlobalTypeAheadUSA">
<Output>
<Row>
<AddressLine1>50 Water Dr</AddressLine1>
<StateProvince>NC</StateProvince>
<PostalCode>27553</PostalCode>
<City>Manson</City>
<ProcessedBy>GTA</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDY2MDgzOTUyNgMD01MD</InstanceKey>
<FormattedAddress>50 Water Dr, Manson, NC 27553</FormattedAddress>
<Ranges/>
<user_fields/>
</Row>
<Row>
<AddressLine1>50 Water Hill Way</AddressLine1>
<StateProvince>NC</StateProvince>
<PostalCode>28732</PostalCode>
<City>Fletcher</City>
<ProcessedBy>GTA</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDY2MDgzOTUyNgMD01MD</InstanceKey>
<FormattedAddress>50 Water Hill Way, Fletcher, NC 28732</FormattedAddress>
<Ranges/>
<user_fields/>
</Row>
<Row>
<AddressLine1>50 Water Brook Rd</AddressLine1>
<StateProvince>NY</StateProvince>
<PostalCode>10930</PostalCode>
<City>Highland Mills</City>
<ProcessedBy>GTA</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDY2MDgzOTUyNgMD01MD</InstanceKey>
<FormattedAddress>50 Water Brook Rd, Highland Mills, NY 10930</FormattedAddress>
<Ranges/>
<user_fields/>
</Row>
<Row>
<AddressLine1>50 N Water Ave</AddressLine1>
<StateProvince>PA</StateProvince>
<PostalCode>16146</PostalCode>
<City>Sharon</City>
<ProcessedBy>GTA</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDY2MDgzOTUyNgMD01MD</InstanceKey>
<FormattedAddress>50 N Water Ave, Sharon, PA 16146</FormattedAddress>
<Ranges/>
<user_fields/>
</Row>
<Row>
<AddressLine1>50 S Water Ave</AddressLine1>
<StateProvince>PA</StateProvince>
<PostalCode>16146</PostalCode>
<City>Sharon</City>
<ProcessedBy>GTA</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDY2MDgzOTUyNgMD01MD</InstanceKey>
<FormattedAddress>50 S Water Ave, Sharon, PA 16146</FormattedAddress>
<Ranges/>
<user_fields/>
</Row>
</Output>
</xml.GlobalTypeAheadUSAResponse>