public class GeoGazetteerClient
extends java.lang.Object
Constructor and Description |
---|
GeoGazetteerClient(GeoParserConfig config) |
GeoGazetteerClient(java.lang.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
|
java.util.Map<java.lang.String,java.util.List<Location>> |
getLocations(java.util.List<java.lang.String> locations)
Calls API of lucene-geo-gazetteer to search location name in gazetteer.
|
public GeoGazetteerClient(java.lang.String url)
url
- public GeoGazetteerClient(GeoParserConfig config)
public java.util.Map<java.lang.String,java.util.List<Location>> getLocations(java.util.List<java.lang.String> locations)
locations
- List of locations to be searched in gazetteerpublic boolean checkAvail()
Copyright © 2010 - 2020 Adobe. All Rights Reserved