GetCityStateProvinceInternational - Spectrum_OnDemand - Latest

Spectrum OnDemand Web Services (REST)

Product type
Software
Portfolio
Verify
Product family
Spectrum
Product
Spectrum > Spectrum Platform
Spectrum > Dataflow Designer
Spectrum > Quality > Spectrum Quality
Spectrum > Discovery
Spectrum > Spatial > Spectrum Spatial Insights
Spectrum > Quality > Context Graph
Spectrum > Quality > Addressing
Spectrum OnDemand
Spectrum > Web Services
Spectrum > Spatial > Spectrum Spatial
Spectrum > Geo Addressing > Enterprise Tax
Spectrum > Spatial > Spectrum Spatial Analyst
Version
Latest
Language
English
Product name
Spectrum OnDemand
Title
Spectrum OnDemand Web Services (REST)
Copyright
2024
First publish date
2006
Last updated
2024-08-28
Published on
2024-08-28T12:55:51.727818

GetCityStateProvinceInternational returns a city and state/province for a given input postal code and country.

Resource URL

JSON endpoint:

http://server:port/rest/GetCityStateProvinceInternational/results.json
https://OnDemandServer/rest/GetCityStateProvinceInternational/results.json

XML endpoint:

http://server:port/rest/GetCityStateProvinceInternational/results.xml
https://OnDemandServer/rest/GetCityStateProvinceInternational/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:

http://myserver:8080/rest/GetCityStateProvinceInternational/results.json?​Data.PostalCode=1684&Data.Country=ZAF
https://spectrum.precisely.com/rest/GetCityStateProvinceInternational/results.json?Data.PostalCode=95380&Data.Country=FRA

The JSON returned by this request would be:

{
    "Output": [
        {
            "ProcessedBy": "INTS",
            "City": "ÉPIAIS-LÈS-LOUVRES",
            "StateProvince": "VAL-D'OISE",
            "PostalCode": "95380",
            "Country": "FRA",
            "user_fields": []
        }
    ]
}

Example with XML Response

The following example requests an XML response:

http://myserver:8080/rest/GetCityStateProvinceInternational/results.xml?​Data.PostalCode=1684&Data.Country=ZAF
https://spectrum.precisely.com/rest/GetCityStateProvinceInternational/results.xml?Data.PostalCode=95380&Data.Country=FRA

The XML returned by this request would be:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xml.GetCityStateProvinceInternationalResponse
	xmlns="http://www.pb.com/spectrum/services/GetCityStateProvinceInternational">
	<Output>
		<Row>
			<ProcessedBy>INTS</ProcessedBy>
			<City>ÉPIAIS-LÈS-LOUVRES</City>
			<StateProvince>VAL-D'OISE</StateProvince>
			<PostalCode>95380</PostalCode>
			<Country>FRA</Country>
			<user_fields/>
		</Row>
	</Output>
</xml.GetCityStateProvinceInternationalResponse>