public class MultipartLocationResolver extends Object
| Constructor and Description |
|---|
MultipartLocationResolver(Gazetteer gaz) |
| Modifier and Type | Method and Description |
|---|---|
ResolvedLocation |
resolveLocation(boolean fuzzy,
String... locationParts)
Resolves a location provided as a series of political divisions from narrowest to broadest.
|
ResolvedLocation |
resolveLocation(String loc,
boolean fuzzy)
Attempts to resolve a location provided as a comma-separated string of political divisions from
narrowest to broadest.
|
ResolvedMultipartLocation |
resolveMultipartLocation(MultipartLocationName location,
boolean fuzzy)
Resolves a multipart location name, such as what's often found
in structured data like a spreadsheet or database table (e.g.,
[Reston][Virginia][United States]), into a
ResolvedMultipartLocation
containing GeoName objects. |
public MultipartLocationResolver(Gazetteer gaz)
public ResolvedMultipartLocation resolveMultipartLocation(MultipartLocationName location, boolean fuzzy) throws ClavinException
ResolvedMultipartLocation
containing GeoName objects.location - multipart location name to be resolvedfuzzy - switch for turning on/off fuzzy matchingClavinException - if an error occurs while resolving locationspublic ResolvedLocation resolveLocation(String loc, boolean fuzzy) throws ClavinException
loc - the comma-separated location name (e.g. "City, County, State, Country")fuzzy - true to use fuzzy matching if an exact match for any location could not be foundClavinException - if an error occurs while searchingpublic ResolvedLocation resolveLocation(boolean fuzzy, String... locationParts) throws ClavinException
fuzzy - true to use fuzzy matching if an exact match for any location could not be foundlocationParts - the names of the locations to match, ordered from most to least specific
(e.g. [ "City", "County", "State", "Country" ])ClavinException - if an error occurs while searchingCopyright © 2012–2014 Berico Technologies. All rights reserved.