Class Geocoder
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.geocoding.base.Geocoder
-
- Direct Known Subclasses:
BingGeocoder
,GISCOGeocoderAPI
,GISCOGeocoderNominatimDetail
,GISCOGeocoderNominatimQuery
public abstract class Geocoder extends Object
- Author:
- julien Gaffuri
-
-
Constructor Summary
Constructors Constructor Description Geocoder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract GeocodingResult
decodeResult(String queryResult)
Decode the output of the geocoder.GeocodingResult
geocode(GeocodingAddress address, boolean printURLQuery)
Geocode an address.protected abstract String
toQueryURL(GeocodingAddress ga)
Returns the geocoder URL for an address.
-
-
-
Method Detail
-
toQueryURL
protected abstract String toQueryURL(GeocodingAddress ga)
Returns the geocoder URL for an address.- Parameters:
ga
-- Returns:
-
decodeResult
protected abstract GeocodingResult decodeResult(String queryResult)
Decode the output of the geocoder.- Parameters:
queryResult
-- Returns:
-
geocode
public GeocodingResult geocode(GeocodingAddress address, boolean printURLQuery)
Geocode an address.- Parameters:
address
-printURLQuery
-- Returns:
-
-