Example: XML GET Request & Response

The following is an example of an XML request for the Reverse Geocode service.

GET http://myserver:8080/Geocode/rest/GeocodeService/reverseGeocode.xml?
distanceUnits=METER&distance=100&coordSysName=EPSG:4326&y=51.543396
&x=13.419194 HTTP/1.1
GET http://myserver:8080/rest/GlobalGeocode/reverseGeocode.xml?
distanceUnits=METER&distance=100&coordSysName=EPSG:4326&y=51.543396
&x=13.419194 HTTP/1.1

The following shows the XML response returned by the previous request.

<?xml version="1.0" encoding="UTF-8"?>
<GeocodeServiceResponse>
   <totalPossibleCandidates>1</totalPossibleCandidates>
   <totalMatches>1</totalMatches>
   <candidates>
      <precisionLevel>1</precisionLevel>
      <formattedStreetAddress>Am Weinberg 4</formattedStreetAddress>
      <formattedLocationAddress>
              04924 Uebigau-Wahrenbrück
      </formattedLocationAddress>
      <precisionCode>RS5A</precisionCode>
      <sourceDictionary>0</sourceDictionary>
      <geometry>
         <type>Point</type>
         <coordinates>13.41906511750789</coordinates>
         <coordinates>51.54321229045565</coordinates>
         <crs>
            <type>name</type>
            <properties>
               <name>epsg:4326</name>
            </properties>
         </crs>
      </geometry>
      <address>
         <mainAddressLine>Am Weinberg 4</mainAddressLine>
         <addressLastLine>04924 Uebigau-Wahrenbrück</addressLastLine>
         <placeName />
         <areaName1>Brandenburg</areaName1>
         <areaName2>Elbe-Elster</areaName2>
         <areaName3>Uebigau-Wahrenbrück</areaName3>
         <areaName4>Prestewitz</areaName4>
         <postCode1>04924</postCode1>
         <postCode2 />
         <country>DEU</country>
         <addressNumber>4</addressNumber>
         <streetName>Am Wein</streetName>
         <customFields>
            <entry>
               <key 
                   xmlns:xs="http:... 
                   xmlns:xsi="http:...
                   xsi:type="xs:string">REVERSE_GEOCODE_DISTANCE_UNIT</key>
               <value
                    xmlns:xs="http:... 
                    xmlns:xsi="http:...
                    xsi:type="xs:string">METERS</value>
            </entry>
            <entry>
               <key
                   xmlns:xs="http:...
                   xmlns:xsi="http:... 
                   xsi:type="xs:string">REVERSE_GEOCODE_DISTANCE</key>
               <value 
                   xmlns:xs="http:... 
                   xmlns:xsi="http:... 
                   xsi:type="xs:string">0.983</value>
            </entry>
         </customFields>
      </address>
      <ranges>
         <lowHouse>4</lowHouse>
         <highHouse>6</highHouse>
         <side>UNKNOWN</side>
         <oddEvenIndicator>EVEN</oddEvenIndicator>
         <customValues />
      </ranges>
   </candidates>
</GeocodeServiceResponse>