GeocodeAddressAllCountries

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

Resource URL

https://OnDemandServer/soap/GeocodeAddressAllCountries

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

Example

The following shows a SOAP request:

<soapenv:Envelope
	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:geoc="http://www.pb.com/spectrum/services/GeocodeAddressAllCountries">
	<soapenv:Header/>
	<soapenv:Body>
		<geoc:GeocodeAddressAllCountriesRequest>
			<geoc:Input>
				<geoc:Row>
					<!--Optional:-->
					<geoc:City>Macquarie Park</geoc:City>
					<!--Optional:-->
					<geoc:StateProvince>NSW</geoc:StateProvince>
					<!--Optional:-->
					<geoc:PostalCode>2113</geoc:PostalCode>
					<!--Optional:-->
					<geoc:Country>AUS</geoc:Country>
					<!--Optional:-->
					<geoc:InputKeyValue></geoc:InputKeyValue>
					<!--Optional:-->
					<geoc:FirmName></geoc:FirmName>
					<!--Optional:-->
					<geoc:AddressLine1>Level 1, 68 Waterloo Rd</geoc:AddressLine1>
					<!--Optional:-->
					<geoc:AddressLine2></geoc:AddressLine2>
					<!--Optional:-->
					<geoc:AddressLine3></geoc:AddressLine3>
					<!--Optional:-->
					<geoc:AddressLine4></geoc:AddressLine4>
					<!--Optional:-->
					<geoc:LastLine></geoc:LastLine>
					<!--Optional:-->
					<geoc:Locality></geoc:Locality>
					<!--Optional:-->
					<geoc:County></geoc:County>
					<!--Optional:-->
					<geoc:user_fields>
						<geoc:user_field>
							<geoc:name></geoc:name>
							<geoc:value></geoc:value>
						</geoc:user_field>
					</geoc:user_fields>
				</geoc:Row>
			</geoc:Input>
		</geoc:GeocodeAddressAllCountriesRequest>
	</soapenv:Body>
</soapenv:Envelope>

This would be the response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <GeocodeAddressAllCountriesResponse xmlns="http://www.g1.com/services/GeocodeAddressAllCountries">
         <rows>
            <row>
               <StreetDataType>1</StreetDataType>
               <AddressLine1>68-72 WATERLOO ROAD</AddressLine1>
               <City>MACQUARIE PARK</City>
               <Country>AUS</Country>
               <LastLine>MACQUARIE PARK NSW 2113</LastLine>
               <PostalCode>2113</PostalCode>
               <StateProvince>NSW</StateProvince>
               <Latitude>-33.78119417912762</Latitude>
               <Longitude>151.12195186999998</Longitude>
               <HouseNumber>68-72</HouseNumber>
               <StreetName>WATERLOO</StreetName>
               <StreetSuffix>ROAD</StreetSuffix>
               <Geocoder.MatchCode>S8HPNTSCZG</Geocoder.MatchCode>
               <IsCloseMatch>Y</IsCloseMatch>
               <HouseNumberHigh>68-72</HouseNumberHigh>
               <HouseNumberLow>68-72</HouseNumberLow>
               <HouseNumberParity>E</HouseNumberParity>
               <UnitNumberHigh>102</UnitNumberHigh>
               <UnitNumberLow>102</UnitNumberLow>
               <SegmentParity>L</SegmentParity>
               <Country.ISO>AU</Country.ISO>
               <Country.UPU>AUS</Country.UPU>
               <Country.Name>AUSTRALIA</Country.Name>
               <LocationPrecision>16</LocationPrecision>
               <NumberOfCandidateRanges>16</NumberOfCandidateRanges>
               <NumberOfRangeUnits>1</NumberOfRangeUnits>
               <CoordinateSystem>epsg:4326</CoordinateSystem>
               <AUS.GNAF_PID>GANSW716948084</AUS.GNAF_PID>
               <AUS.GNAF_CONFIDENCE>1</AUS.GNAF_CONFIDENCE>
               <AUS.GNAF_GEOCODE_LEVEL>7</AUS.GNAF_GEOCODE_LEVEL>
               <AUS.GNAF_RELIABILITY>2</AUS.GNAF_RELIABILITY>
               <AUS.MESH_BLOCK_ID>10672502000</AUS.MESH_BLOCK_ID>
               <Ranges/>
               <user_fields/>
            </row>
         </rows>
      </GeocodeAddressAllCountriesResponse>
   </soap:Body>
</soap:Envelope>