1.1 Geocode

Frozen Version

This reference documents version 1.1 (a frozen version) of the MapData Services Geocoding API. This release version of the API is a stable version of the API whose interfaces are "frozen" and guaranteed to remain as documented within these pages until this version is retired.

What is Geocode?

Geocode is a process by which an address is translated into a geographical coordinate. This service provides a way to does this via an HTTP request. The converse operation is also available, i.e. take a geographical coordinate and translate that into an address.

Security

This service supports Basic Authentication.

Request

Requests to the Geocode service can by made either by Address components, Coordinate or property ID.

By Address Parts

https://api.nowwhere.com.au/1.1/geocode/address?parameters

An Address Geocode request supports the following parameters:

  • subpremise / street - The subpremise / street portion of the address, e.g. SUITE 2 110 Pacific Highway.
  • locality - The locality portion of the address, e.g. Greenwich.
  • postcode - The postcode portion of the address, e.g. 2065.
  • region - The region portion of the address, e.g. NSW.
  • country - The country portion of the address, e.g. Australia.

By Coordinate

https://api.nowwhere.com.au/1.1/geocode/latitude,longitude

A Coordinate Geocode request supports the following parameters (in decimal degrees):

  • latitude - The latitude portion of the coordinate, e.g. -33.825071.
  • longitude - The longitude portion of the coordinate, e.g. 151.1904.

By Property Id

https://api.nowwhere.com.au/1.1/geocode/property_id

A Property Id Geocode request supports the following parameters:

  • Property Id - The property id of the property parcel e.g. GANSU705290690

Response

The format of a Geocode response can be controlled by setting the accepts header. Currently the only supported type is XML.

XML Output

In this example an address geocode request is made for SUITE 2 110 Pacific Highway, Greenwich 2065 NSW, Australia.

https://api.nowwhere.com.au/1.1/geocode/address?street=suite%202%20110+pacific+hwy&locality=greenwich&postcode=2065

The returned XML is shown below.

<geocode>
  <copyright>Copyright © 2019 MapData Services and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from MapData Services.</copyright>
  <status>OK</status>
  <results>
    <result>
      <address>
        <formattedaddress>SUITE 2/110 Pacific Highway, Greenwich 2065 NSW, Australia</formattedaddress>
        <subpremise>SUITE 2</subpremise>
        <streetnumber>110</streetnumber>
        <route>Pacific Highway</route>
        <locality>Greenwich</locality>
        <postcode>2065</postcode>
        <region>NSW</region>
        <country>Australia</country>
      </address>
      <geometry>
        <location>
          <lat>-33.825071</lat>
          <lng>151.1904</lng>
        </location>
        <location_type>ROOFTOP</location_type>
      </geometry>
      <propertyid>GANSW717827087</propertyid>
      <boundaries>
        <boundary>
          <name>SA1</name>
          <code>1140037</code>
        </boundary>
        <boundary>
          <name>SA2</name>
          <code>121011400</code>
        </boundary>
        <boundary>
          <name>SA3</name>
          <code>12101</code>
        </boundary>
        <boundary>
          <name>SA4</name>
          <code>121</code>
        </boundary>
      </boundaries>
    </result>    
  </results>
</geocode>

Status Codes

The status field within the response describes the type of response. The status field will contain one of the following values:

  • OK indicates that no errors occured. The address or coordinate was successfully parsed and at least one geocode was returned.

Results

The service response contains an array of result objects.

A typical result is made up of the following:

  • formattedaddress - The formatted address
  • subpremise - The unit / suite number.
  • streetnumber - The building number.
  • route - The name of the street.
  • locality - The locality.
  • postcode - The postcode.
  • region - The region.
  • country - The country.