38.0 Find Nearest Address (Reverse Geocode)

38.2 Data Returned

Back to Index

The address nearest to the given point of interest is returned in XML format. If no nearby address is found a standard error XML document is returned.

DTD:

<!ELEMENT addresses (address*)>
<!ATTLIST addresses count CDATA #REQUIRED>
<!ATTLIST addresses lat CDATA #REQUIRED>
<!ATTLIST addresses long CDATA #REQUIRED>

<!ELEMENT address (long, lat, distance, road, number, zip, county, state, country)>

<!ELEMENT long (#PCDATA)>
<!ELEMENT lat (#PCDATA)>
<!ELEMENT distance (#PCDATA)>
<!ELEMENT road (#PCDATA)>
<!ELEMENT number (#PCDATA)>
<!ELEMENT zip (#PCDATA)>
<!ELEMENT county (#PCDATA)>
<!ELEMENT state (#PCDATA)>
<!ELEMENT country (#PCDATA)>

Reply Data
Name Description
long the longitude of the returned point
lat the latitude of the returned point
distance distance between point of interest and the returned matching address.
distance_unit unit that distance is specified in
road the road name
number the building number
zip the zip code
county the county
state the state
country the country

 

Example Request:

https://zonarsystems.net/interface.php?operation=revgeocode
&action=showposition&long=-122.17286&lat=47.49497&format=xml

Example Success Reply (XML)