Address Location Web Service
API Reference Guide
Service URL
Example usage
Parameters
Response
Appendix - Road Name Types
The NSW Address Location Service allows the user to enter an address and pinpoint the location of that address.
Service URL
http://mapsq.six.nsw.gov.au/services/public/Address_Location
Example usage
http://mapsq.six.nsw.gov.au/services/public/Address_Location?houseNumber=346&roadName=Panorama&roadType=Ave&suburb=Bathurst&postCode=2795&projection=EPSG%3A4326Parameters
Parameter | Details |
---|---|
houseNumber |
Description: The house number. May be in the form of a number or alphanumeric, e.g. 12 or 12A. Values: String Example: '12', '12A' |
roadName* |
Description: The road name not including the type. Values: String Example: 'Panorama','george' |
roadType |
Description: The road type. Both full names and abbreviations may be used. See appendix for complete list of abbreviations. Values: String Example: 'Road', 'Rd', 'parade', 'pde' |
suburb** |
Description: The suburb name. Values: String Example: 'Bathurst', 'parramatta' |
postCode |
Description: The postcode. Values: Integer Example: 2795 |
projection |
Description: The address location's coordinate system in the output. Valid values are 'EPSG:3857' (Web Mercator) or 'EPSG:4326' (Geographic) Values: String Example: 'EPSG:3857', 'EPSG:4326' |
* Road name is mandatory
** Either a suburb or a postcode must be input. At least one of the fields is required, however both may be used.
Response
The service will respond with a JSON object such as the following:
{ "addressResult": { "addresses": [ { "houseNumberFirst": 346, "houseNumberFirstSuffix": null, "houseNumberSecond": 0, "houseNumberSecondSuffix": null, "objectId": 5230635, "propid": 3523531, "postCode": 2795, "roadName": "Panorama", "roadSuffix": null, "roadType": "Avenue", "shortAddressString": "346 PANORAMA AVENUE BATHURST", "suburbName": "Bathurst", "addressType": "Assigned", "council": "Bathurst Regional", "addressString": "346null Panorama Avenue nullBathurst 2795", "houseNumberString": "346", "addressPoint": { "addressPointType": null, "addressPointUncertainty": null, "addressstringOid": 0, "containment": null, "createDate": null, "gurasId": null, "objectId": null, "prowayOid": null, "waypointOid": null, "coordRefSys": "EPSG:4283", "centreX": 149.5667881214216, "centreY": -33.430237352201004 } } ], "errMsg": null, "numRecs": 1, "searchMethod": { "methodDescriptions": [ "Input parameters matched", "Address Returned" ] } } }
Field | Details |
---|---|
errMsg |
Description: An error message string if an error occured. Values: String || null |
numRecs |
Description: The number of address records found. Values: Ingeter |
searchMethod |
Description: The method(s) used to locate the address. See the Search Method section for further details. Values: SearchMethod Example: ['Input parameters matched', 'Addresses Returned'] |
addresses |
Description: An array of address records. See the AddressRecord section for further details. Values: array of AddressRecords |
AddressRecord
Field | Details |
---|---|
objectId |
Description: Unique identifier for the address record. Values: Long |
houseNumberFirst |
Description: The number portion of first house number. Values: Integer |
houseNumberFirstSuffix |
Description: The suffix for the first house number Values: String || null |
houseNumberSecond |
Description: The number portion of the second house number. Values: Integer |
houseNumberSecondSuffix |
Description: The suffix for the second house number. Values: String || null |
houseNumberString |
Description: The house number as a string (combines first and second plus their suffixes). Values: String |
roadName |
Description: The road name only. Values: String |
roadType |
Description: The road type. Will use the complete name rather than the type abbreviation. Values: String |
roadSuffix |
Description: The road suffix. Values: String Example: 'West', 'East' |
suburbName |
Description: The suburb name. Values: String |
postCode |
Description: The post code. Values: Long |
shortAddressString |
Description: A string representing the address in short format. Values: String |
council |
Description: The council name. Values: String |
addressType |
Description: The address type. Values: String Possible values are:
|
addressPoint |
Description: The location of the address. See AddressPoint section for further details. Values: AddressPoint |
AddressPoint
Field | Details |
---|---|
coordRefSys |
Description: The coordinate system used for the point. Will output 'EPSG:3857' (Web Mercator) or 'EPSG:4326' (Geographic). Values: String Example: 'EPSG:3857', 'EPSG:4326' |
centreX |
Description: X coordinate for the centroid of the address. Values: Double |
centreY |
Description: Y coordinate for the centroid of the address. Values: Double |
SearchMethod
Field | Details |
---|---|
methodDescriptions |
Description: Contains a list of methods used to find the address. Values: String array |
The address results in some cases may not be what the user is expecting. For instance the suburb name returned may be different to the name entered or the house number may also be different. To understand the reason the address is returned as it is the search methods output should be examined. The search methods describe what processes were used to find the address. Multiple methods may be used so the search methods contain a list of methods.
The methods used and their explanations are as follows:
Method | Description |
---|---|
Input parameters matched | An exact match of the input parameters were found with no alteration. |
Road type ignored | The road type entered was ignored in the search. |
Suburb ignored | The suburb name entered was ignored in the search. |
Postcode ignored | The postcode entered was ignored in the search. |
Road type and postcode ignored | Both road type and postcode were ignored in the search. |
Road type and suburb ignored | Both road type and suburb were ignored in the search. |
Closest house number found | The closest house number was found. If the house number input was even then the closest even number is found and similar for odd numbers. |
Alternate place name used | Used the alternate place names database to find an alternate name for the suburb. |
Suburb not matched, used suburbs postcode | Used the postcode of the suburb name instead as no match was found with that suburb name. |
Address Returned | A single address result was returned. |
Addresses Returned | Multiple address results returned. |
Appendix - Road Name Types
Road Type | Abbreviation | Road Type | Abbreviation | Road Type | Abbreviation |
---|---|---|---|---|---|
ACCESS | ACCS | ALLEY | ALLY | ALLEYWAY | ALWY |
AMBLE | AMBL | APPROACH | APP | ARCADE | ARC |
ARTERIAL | ARTL | ARTERY | ART | AVENUE | AVE |
BANAN | BA | BEND | BEND | BOARDWALK | BWLK |
BOULEVARD | BVD | BRACE | BRCE | BRAE | BRAE |
BREAK | BRK | BROADWAY | BDWY | BROW | BROW |
BYPASS | BYPA | BYWAY | BYWY | CAUSEWAY | CAUS |
CENTRE | CTR | CHASE | CH | CIRCLE | CIR |
CIRCLET | CLT | CIRCUIT | CCT | CIRCUS | CRCS |
CLOSE | CL | COMMON | CMMN | CONCOURSE | CON |
COPSE | CPS | CORNER | CNR | COURT | CT |
COURTYARD | CTYD | COVE | COVE | CRESCENT | CR |
CREST | CRST | CROSS | CRSS | CROSSING | CRSG |
CUL-DE-SAC | CSAC | CUTTING | CUTT | DALE | DALE |
DEVIATION | DEVN | DIP | DIP | DISTRIBUTOR | DSTR |
DRIVE | DR | DRIVEWAY | DRWY | EDGE | EDGE |
ELBOW | ELB | END | END | ENTRANCE | ENT |
ESPLANADE | ESP | EXPRESSWAY | EXP | EXTENSION | EXTN |
FAIRWAY | FAWY | FIRETRACK | FTRK | FIRETRAIL | FITR |
FOLLOW | FOLW | FOOTWAY | FTWY | FORMATION | FORM |
FREEWAY | FWY | FRONTAGE | FRTG | GAP | GAP |
GARDEN | GDN | GARDENS | GDNS | GATE | GATE |
GLADE | GLD | GLEN | GLEN | GRANGE | GRA |
GREEN | GRN | GROVE | GR | HEIGHTS | HTS |
HIGHROAD | HRD | HIGHWAY | HWY | HILL | HILL |
INTERCHANGE | INTG | JUNCTION | JNC | KEY | KEY |
LANE | LANE | LANEWAY | LNWY | LINE | LINE |
LINK | LINK | LOOKOUT | LKT | LOOP | LOOP |
MALL | MALL | MEANDER | MNDR | MEWS | MEWS |
MOTORWAY | MWY | NOOK | NOOK | OUTLOOK | OTLK |
PARADE | PDE | PARKWAY | PKWY | PASS | PASS |
PASSAGE | PSGE | PATH | PATH | PATHWAY | PHWY |
PIAZZA | PIAZ | PLACE | PL | PLAZA | PLZA |
PKT | POINT | PNT | PORT | PORT | |
PROMENADE | PROM | QUADRANT | QDRT | QUAY | QY |
QUAYS | QYS | RAMBLE | RMBL | RAMP | RAMP |
REST | REST | RETREAT | RTT | RIDGE | RDGE |
RING | RING | RISE | RISE | ROAD | RD |
ROADS | RDS | ROTARY | RTY | ROUTE | RTE |
ROW | ROW | RUE | RUE | SERVICEWAY | SVWY |
SHUNT | SHUN | SPUR | SPUR | SQUARE | SQ |
STAIRS | STRS | STEPS | STPS | STREET | ST |
STRIP | STRP | SUBWAY | SBWY | TARN | TARN |
TERRACE | TCE | THOROUGHFARE | THOR | TOLLWAY | TLWY |
TOP | TOP | TOR | TOR | TRACK | TRK |
TRAIL | TRL | TURN | TURN | UNDERPASS | UPAS |
VALE | VALE | VIADUCT | VIAD | VIEW | VIEW |
VISTA | VSTA | WALK | WALK | WALKWAY | WKWY |
WAY | WAY | WHARF | WHRF | WYND | WYND |