Example: XML GET Request & Response
The following is an example of an XML request for the Geocode service.
GET http://myserver:8080/Geocode/rest/GeocodeService/geocode.xml?
mainAddress=18 Merivales St&country=AUS&areaName1=QLD&postalCode=4101 HTTP/1.1
GET http://myserver:8080/rest/GlobalGeocode/geocode.xml?
mainAddress=18 Merivales St&country=AUS&areaName1=QLD&postalCode=4101 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>
18 MERIVALE STREET</formattedStreetAddress>
<formattedLocationAddress>
SOUTH BRISBANE QLD 4101</formattedLocationAddress>
<identifier>300211549</identifier>
<precisionCode>S5HP-TSCZA</precisionCode>
<sourceDictionary>0</sourceDictionary>
<geometry>
<type>Point</type>
<coordinates>153.01511420131578</coordinates>
<coordinates>-27.47292827752508</coordinates>
<crs>
<type>name</type>
<properties>
<name>epsg:4326</name>
</properties>
</crs>
</geometry>
<address>
<mainAddressLine>18 MERIVALE STREET</mainAddressLine>
<addressLastLine>SOUTH BRISBANE QLD 4101</addressLastLine>
<placeName />
<areaName1>QLD</areaName1>
<areaName2>BRISBANE CITY</areaName2>
<areaName3>SOUTH BRISBANE</areaName3>
<areaName4 />
<postCode1>4101</postCode1>
<postCode2 />
<country>AUS</country>
<addressNumber>18</addressNumber>
<streetName>MERIVALE</streetName>
<customFields />
</address>
<ranges>
<lowHouse>6</lowHouse>
<highHouse>18</highHouse>
<side>RIGHT</side>
<oddEvenIndicator>BOTH</oddEvenIndicator>
<customValues />
</ranges>
</candidates>
</GeocodeServiceResponse>