10.12.2012 Views

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.1.2 Match Modes<br />

Concepts for Geocoding<br />

The match mode for a geocoding operation determines how closely the attributes of<br />

an input address must match the data being used for the geocoding. Input<br />

addresses can include different ways of representing the same thing (such as Street<br />

<strong>and</strong> the abbreviation St), <strong>and</strong> they can include minor errors (such as the wrong<br />

postal code, even though the street address <strong>and</strong> city are correct <strong>and</strong> the street<br />

address is unique within the city).<br />

You can require an exact match between the input address <strong>and</strong> the data used for<br />

geocoding, or you can relax the requirements for some attributes so that geocoding<br />

can be performed despite certain discrepancies or errors in the input addresses.<br />

Table 5–2 lists the match modes <strong>and</strong> their meanings. Use a value from this table<br />

with the match_mode attribute of the SDO_GEO_ADDR data type (described in<br />

Section 5.2.1) <strong>and</strong> for the match_mode parameter of a geocoding function or<br />

procedure.<br />

Table 5–2 Match Modes for Geocoding Operations<br />

Match Mode Description<br />

EXACT All attributes of the input address must match the data used for<br />

geocoding. However, if the house or building number, base<br />

name (street name), street type, street prefix, <strong>and</strong> street suffix do<br />

not all match the geocoding data, a location in the first match<br />

found in the following is returned: postal code, city or town<br />

(settlement) within the state, <strong>and</strong> state. For example, if the street<br />

name is incorrect but a valid postal code is specified, a location<br />

in the postal code is returned.<br />

RELAX_STREET_TYPE The street type can be different from the data used for<br />

geocoding. For example, if Main St is in the data used for<br />

geocoding, Main Street would also match that, as would Main<br />

Blvd if there was no Main Blvd <strong>and</strong> no other street type named<br />

Main in the relevant area.<br />

RELAX_POI_NAME The name of the point of interest does not have to match the<br />

data used for geocoding. For example, if Jones State Park is in the<br />

data used for geocoding, Jones State Pk <strong>and</strong> Jones Park would also<br />

match as long as there were no ambiguities or other matches in<br />

the data.<br />

RELAX_HOUSE_<br />

NUMBER<br />

The house or building number <strong>and</strong> street type can be different<br />

from the data used for geocoding. For example, if 123 Main St is<br />

in the data used for geocoding, 123 Main Lane <strong>and</strong> 124 Main St<br />

would also match as long as there were no ambiguities or other<br />

matches in the data.<br />

Geocoding Address Data 5-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!