oracle.panama.model
Interface Location
- All Superinterfaces:
- Point, java.io.Serializable
- All Known Subinterfaces:
- ExtendedLocation, ExtendedYPBusiness, IntlAddress, LocationMark, YPBusiness
- public interface Location
- extends Point
Location is a representation of an address with its coordinates (longitude and latitude).
Methods inherited from interface oracle.panama.model.Point |
getDistance, getLabel, getLatitude, getLongitude, getPositionProvider, getRadius, setLabel, setLatitude, setLongitude, setPositionProvider, setRadius |
geocode
public boolean geocode(boolean checkWhetherNecessary,
boolean makeCorrections)
- This function geocodes this address, thus finds its lat/lon location. This is a convenient version of geocodeAddress in the class Geocoder. Generally, geocoding returns a list of alternative addresses if the input address was ambiguous. Furthermore, the geocoder might correct the input address and add previously unspecified field values, such as postal code extension. This convenient function, however, will only consider the first of potentially several resulting addresses. It will furthermore only make a correction to inexact field values, such as an incorrectly spelled company name, if requested.
-
- Parameters:
checkWhetherNecessary
- a boolean representing whether geocoding should only be performed if the location is not yet known (true) or whether it should be done irrespective of previously performed geocoding.
makeCorrections
- a boolean representing whether non-existant, incorrect or inexact components of the address should be automatically corrected. The quality of the correction depends on the specific external geocoder and a correct value might be substituted for an alternative, equally correct value.
- Returns:
- a boolean representing whether the geocoding has been successful
getAddressLastLine
public java.lang.String getAddressLastLine()
getAddressLine1
public java.lang.String getAddressLine1()
getAddressLine2
public java.lang.String getAddressLine2()
getBlock
public java.lang.String getBlock()
getCity
public java.lang.String getCity()
getCompanyName
public java.lang.String getCompanyName()
getCountry
public java.lang.String getCountry()
getCounty
public java.lang.String getCounty()
getGeocodeProvider
public ProviderCredit getGeocodeProvider()
getMatchMode
public java.lang.String getMatchMode()
getPostalCode
public java.lang.String getPostalCode()
getPostalCodeExt
public java.lang.String getPostalCodeExt()
getState
public java.lang.String getState()
setAddressLastLine
public void setAddressLastLine(java.lang.String addrlastline)
setAddressLine1
public void setAddressLine1(java.lang.String addrline1)
setAddressLine2
public void setAddressLine2(java.lang.String addrline2)
setBlock
public void setBlock(java.lang.String block)
setCity
public void setCity(java.lang.String city)
setCompanyName
public void setCompanyName(java.lang.String companyName)
setCountry
public void setCountry(java.lang.String country)
setCounty
public void setCounty(java.lang.String county)
setGeocodeProvider
public void setGeocodeProvider(ProviderCredit credit)
setMatchMode
public void setMatchMode(java.lang.String matchmode)
setPostalCode
public void setPostalCode(java.lang.String postalCode)
setPostalCodeExt
public void setPostalCodeExt(java.lang.String postalCodeExt)
setState
public void setState(java.lang.String state)
Copyright © 2004 Oracle Corporation. All Rights Reserved.