ReverseGeocodeAllCountries - Spectrum_OnDemand - Latest

Spectrum OnDemand Web Services (SOAP)

Product type
Software
Portfolio
Verify
Product family
Product
Spectrum OnDemand
Version
Latest
Language
English
Product name
Spectrum OnDemand
Title
Spectrum OnDemand Web Services (SOAP)
First publish date
2006

ReverseGeocodeAllCountries takes a latitude and longitude point as input and returns the address that is the best match for that point.

Resource URL

https://OnDemandServer/soap/ReverseGeocodeAllCountries

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:rev="http://www.pb.com/spectrum/services/ReverseGeocodeAllCountries">
   <soapenv:Header />
   <soapenv:Body>
      <rev:ReverseGeocodeAllCountriesRequest>
         <rev:options />
         <rev:Input>
            <rev:Row>
               <rev:Latitude>-8.84549</rev:Latitude>
               <rev:Longitude>13.23447</rev:Longitude>
            </rev:Row>
         </rev:Input>
      </rev:ReverseGeocodeAllCountriesRequest>
   </soapenv:Body>
</soapenv:Envelope>

This would be the response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns3:ReverseGeocodeAllCountriesResponse xmlns:ns3="http://www.pb.com/spectrum/services/ReverseGeocodeAllCountries" xmlns:ns2="http://spectrum.pb.com/">
         <ns3:Output>
            <ns3:Row>
               <ns3:AddressLine1>21 DE JANEIRO</ns3:AddressLine1>
               <ns3:City>MAIANGA</ns3:City>
               <ns3:Country>AGO</ns3:Country>
               <ns3:StateProvince>LUANDA</ns3:StateProvince>
               <ns3:County>LUANDA</ns3:County>
               <ns3:Latitude>-8.84549</ns3:Latitude>
               <ns3:Longitude>13.23447</ns3:Longitude>
               <ns3:HouseNumberHigh />
               <ns3:HouseNumberLow />
               <ns3:HouseNumberParity>U</ns3:HouseNumberParity>
               <ns3:LastLine>MAIANGA</ns3:LastLine>
               <ns3:Locality>MARTIRES DE KIFANGONDO</ns3:Locality>
               <ns3:Geocoder.MatchCode>RS4A</ns3:Geocoder.MatchCode>
               <ns3:SegmentParity>L</ns3:SegmentParity>
               <ns3:StreetDataType>1</ns3:StreetDataType>
               <ns3:StreetName>21 DE JANEIRO</ns3:StreetName>
               <ns3:NumberOfCandidateRanges>1</ns3:NumberOfCandidateRanges>
               <ns3:NumberOfRangeUnits>0</ns3:NumberOfRangeUnits>
               <ns3:SegmentCode>00004147-4f00-0400-0000-0000000b3e04</ns3:SegmentCode>
               <ns3:Distance>0.0</ns3:Distance>
               <ns3:Language>pt</ns3:Language>
               <ns3:Ranges />
               <ns3:user_fields />
            </ns3:Row>
         </ns3:Output>
      </ns3:ReverseGeocodeAllCountriesResponse>
   </soap:Body>
</soap:Envelope>