GeocodeAddressAllCountriesPremium

The GeocodeAddressAllCountriesPremium service takes an input address from any supported country and returns the latitude and longitude coordinates for the address.

Resource URL

https://OnDemandServer/soap/GeocodeAddressAllCountriesPremium

For a list of Spectrum OnDemand servers, see Connecting to Spectrum OnDemand Servers.

Example

This shows a SOAP request:

<soapenv:Envelope
	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:geoc="http://www.pb.com/spectrum/services/GeocodeAddressAllCountriesPremium">
	<soapenv:Header/>
	<soapenv:Body>
		<geoc:GeocodeAddressAllCountriesPremiumRequest>
			<geoc:Input>
				<geoc:Row>
					<geoc:AddressLine1>Lloyd G. Smith Boulevard 2</geoc:AddressLine1>
					<geoc:City>Oranjestad</geoc:City>
					<geoc:Country>ABW</geoc:Country>
				</geoc:Row>
			</geoc:Input>
		</geoc:GeocodeAddressAllCountriesPremiumRequest>
	</soapenv:Body>
</soapenv:Envelope>

This would be the response:

<soap:Envelope
	xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
	<soap:Body>
		<ns2:GeocodeAddressAllCountriesPremiumResponse
			xmlns:ns3="http://spectrum.pb.com/"
			xmlns:ns2="http://www.pb.com/spectrum/services/GeocodeAddressAllCountriesPremium">
			<ns2:Output>
				<ns2:Row>
					<ns2:AddressLine1>L. G. Smith Boulevard 2</ns2:AddressLine1>
					<ns2:City>Oranjestad</ns2:City>
					<ns2:LocationPrecision>2</ns2:LocationPrecision>
					<ns2:Country>ABW</ns2:Country>
					<ns2:HouseNumber>2</ns2:HouseNumber>
					<ns2:HouseNumberHigh></ns2:HouseNumberHigh>
					<ns2:HouseNumberLow></ns2:HouseNumberLow>
					<ns2:HouseNumberParity>U</ns2:HouseNumberParity>
					<ns2:LastLine>ORANJESTAD</ns2:LastLine>
					<ns2:Latitude>12.52141</ns2:Latitude>
					<ns2:Longitude>-70.04178</ns2:Longitude>
					<ns2:Geocoder.MatchCode>S4-P-TSC-A</ns2:Geocoder.MatchCode>
					<ns2:SegmentParity>U</ns2:SegmentParity>
					<ns2:StreetDataType>1</ns2:StreetDataType>
					<ns2:StreetName>L. G. SMITH</ns2:StreetName>
					<ns2:StreetSuffix>BOULEVARD</ns2:StreetSuffix>
					<ns2:NumberOfCandidateRanges>1</ns2:NumberOfCandidateRanges>
					<ns2:NumberOfRangeUnits>0</ns2:NumberOfRangeUnits>
					<ns2:CoordinateSystem>epsg:4326</ns2:CoordinateSystem>
					<ns2:IsCloseMatch>Y</ns2:IsCloseMatch>
					<ns2:SegmentCode>1103361771</ns2:SegmentCode>
					<ns2:Country.ISO>AW</ns2:Country.ISO>
					<ns2:Country.UPU>ABW</ns2:Country.UPU>
					<ns2:Country.Name>ARUBA</ns2:Country.Name>
					<ns2:Language>nl</ns2:Language>
					<ns2:Ranges/>
					<ns2:StreetSegmentPoints/>
					<ns2:user_fields/>
				</ns2:Row>
			</ns2:Output>
		</ns2:GeocodeAddressAllCountriesPremiumResponse>
	</soap:Body>
</soap:Envelope>