Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Cities in Australia report as postal code #2871

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Cities in Australia report as postal code #2871

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: mike[at]ricochetlabs.com
[Submitted to the original trac issue database at 6.04am, Friday, 9th April 2010]

performing a reverse geocode look up in Australia will return the postcode in the city

Example:

http://nominatim.openstreetmap.org/reverse?format=json&lat=-33.906895553&lon=150.99609375
returns
{"place_id":27288266,"licence":"Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.","osm_type":"way","osm_id":23649580,"display_name":"Quentin Street, Bass Hill, 2197, New South Wales, Australia","address":{"road":"Quentin Street","suburb":"Bass Hill","city":2197,"postcode":2197,"state":"New South Wales","country":"Australia","country_code":"au"}}

@openstreetmap-trac
Copy link
Author

Author: Rudi Heitbaum
[Added to the original trac issue at 8.16am, Friday, 31st December 2010]

From what I can see. The issue is that the Administrative Region level is set to 8 for the Postcode. Level 10 for the Suburb. See the following way for an example: http://www.openstreetmap.org/browse/way/32289977. In Australia a correct postal address is:

12 Smith Street # ROAD

New Farm # Suburb

Queensland 4005 # State # Postcode

Australia # Country

as Per: http://auspost.com.au/personal/addressing-guidelines.html / http://en.wikipedia.org/wiki/Address_%28geography%29

So by my reckoning; we should be returning :

Alford Street # AS-IS

New Farm # Level 10

4005 # Level 8

Queensland # AS-IS

Australia # AS-IS

<country_code>au</country_code> #AS-IS

Hamlets/Towns should be ignored. (maybe even villages.)

In this case the data is a better representation:
http://nominatim.openstreetmap.org/reverse?format=xml&lat=-37.793352&lon=144.930026&zoom=18&addressdetails=1

In the above example;

Thai By Night # VALID

Wight Street # VALID

Kensington # VALID

Footscray # INVALID

3031 # Same as postcode - Assume postcode is coming from the Node

City of Melbourne # VALID - This is known as a Council in Australia

3031 #VALID

Victoria #VALID

Australia #VALID

<country_code>au</country_code> #VALID

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 6.59am, Thursday, 1st May 2014]

Looks okay these days, please reopen if the issue should appear again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant