public class GeoGazetteerClient extends Object
Constructor and Description |
---|
GeoGazetteerClient(GeoParserConfig config) |
GeoGazetteerClient(String url)
Pass URL on which lucene-geo-gazetteer is available - eg.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkAvail()
Ping lucene-geo-gazetteer API
|
Map<String,List<Location>> |
getLocations(List<String> locations)
Calls API of lucene-geo-gazetteer to search location name in gazetteer.
|
public GeoGazetteerClient(String url)
url
- public GeoGazetteerClient(GeoParserConfig config)
public Map<String,List<Location>> getLocations(List<String> locations)
locations
- List of locations to be searched in gazetteerpublic boolean checkAvail()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.