public class GMapGeoLocator extends Object implements GeoLocator
Modifier and Type | Field and Description |
---|---|
static String |
GOOGLE_CLIENT_ID |
static String |
GOOGLE_SIGNING_KEY |
static String |
GOOGLE_SUFFIX |
static String |
GOOGLE_URI |
static String |
SLEEP_TIME |
Constructor and Description |
---|
GMapGeoLocator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
append(StringBuilder query,
String street,
boolean addSpace) |
protected URL |
buildUrl(String requestUrl) |
void |
configure(Properties properties) |
protected com.fasterxml.jackson.databind.JsonNode |
getJsonResponse(URL url) |
Coordinate |
locate(String zip,
String city,
String street) |
Coordinate |
locate(String zip,
String city,
String street,
String country) |
public static final String GOOGLE_URI
public static final String GOOGLE_SUFFIX
public static final String GOOGLE_CLIENT_ID
public static final String GOOGLE_SIGNING_KEY
public static final String SLEEP_TIME
public void configure(Properties properties)
configure
in interface GeoLocator
public Coordinate locate(String zip, String city, String street)
locate
in interface GeoLocator
public Coordinate locate(String zip, String city, String street, String country)
locate
in interface GeoLocator
protected boolean append(StringBuilder query, String street, boolean addSpace)
protected com.fasterxml.jackson.databind.JsonNode getJsonResponse(URL url) throws IOException, InterruptedException, GeneralSecurityException
protected URL buildUrl(String requestUrl) throws MalformedURLException, GeneralSecurityException, IOException
Copyright © 2011–2020 aiticon GmbH. All rights reserved.