Resource URL
JSON endpoint:
https://OnDemandServer/rest/GlobalTypeAheadCAN/results.json
XML endpoint:
https://OnDemandServer/rest/GlobalTypeAheadCAN/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/GlobalTypeAheadCAN/results.json?​Data.AddressLine1=woodward%20ave&Data.StateProvince=NB
The JSON returned by this request would be:
{
"Output": [
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
},
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K 5K1",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
},
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K 5M2",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
},
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K 1Z8",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
},
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K 2L1",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
},
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K 4P9",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
},
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K 4R1",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
},
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K 1Z9",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
},
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K 4N1",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
},
{
"AddressLine1": "Woodward Ave",
"StateProvince": "NB",
"PostalCode": "E2K 4N2",
"City": "Saint John",
"ProcessedBy": "INTC",
"InstanceKey": "ACUjMzMTU5NDc0NTgyMjg1OAND01MT",
"user_fields": [
]
}
]
}
Example with XML Response
The following example requests an XML response:
https://spectrum.precisely.com/rest/GlobalTypeAheadCAN/results.xml?Data.AddressLine1=woodward%20ave&Data.StateProvince=NB
The XML returned by this request would be:
<xml.GlobalTypeAheadCANResponse xmlns="http://www.pb.com/spectrum/services/GlobalTypeAheadCAN">
<Output>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K 5K1</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K 5M2</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K 1Z8</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K 2L1</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K 4P9</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K 4R1</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K 1Z9</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K 4N1</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
<Row>
<AddressLine1>Woodward Ave</AddressLine1>
<StateProvince>NB</StateProvince>
<PostalCode>E2K 4N2</PostalCode>
<City>Saint John</City>
<ProcessedBy>INTC</ProcessedBy>
<InstanceKey>ACUjMDMTU5NDc0NjAyNzU3NAMj01Mj</InstanceKey>
<user_fields/>
</Row>
</Output>
</xml.GlobalTypeAheadCANResponse>