public class GoogleLocator extends GeoLocator
Constructor and Description |
---|
GoogleLocator()
Create a GoogleLocator with the estimate flag set to false
|
GoogleLocator(boolean doEstimate)
Create a GoogleLocator with the specified estimate flag
|
Modifier and Type | Method and Description |
---|---|
GeoCoord |
getCoordinate(java.lang.String locName)
Request the geographic coordinate from the Google Map server.
|
boolean |
isEstimateFlag()
Return whether the locator allows estimation
|
GeoShape |
lookup(Location loc)
Look up the shape associated with the specified Location
|
GeoShape |
lookup(java.lang.String locName)
Look up the shape associated with the specified Location by name
|
GeoShape |
lookup(java.lang.String locName,
java.lang.String type)
Look up the shape associated with the specified Location by name and
type
|
void |
setEstimateFlag(boolean estimateFlag)
Set the flag indicating whether to allow estimation within the locator.
|
static void |
setKey(java.lang.String keyString)
Set the Google Map API key
|
getFeatureType
public GoogleLocator()
public GoogleLocator(boolean doEstimate)
doEstimate
- the estimate flagpublic GeoCoord getCoordinate(java.lang.String locName)
getCoordinate
in class GeoLocator
locName
- Location name.public boolean isEstimateFlag()
isEstimateFlag
in class GeoLocator
public GeoShape lookup(Location loc)
lookup
in class GeoLocator
loc
- the specified location objectpublic GeoShape lookup(java.lang.String locName)
lookup
in class GeoLocator
locName
- the specified location namepublic GeoShape lookup(java.lang.String locName, java.lang.String type)
lookup
in class GeoLocator
locName
- the specified location nametype
- the type of location the name representspublic void setEstimateFlag(boolean estimateFlag)
setEstimateFlag
in class GeoLocator
estimateFlag
- whether the locator allows estimationpublic static void setKey(java.lang.String keyString)
keyString
- the Google Map API key