public class GoogleMapsServiceWrapper extends Object implements GeoWebServiceWrapper
| Modifier and Type | Field and Description |
|---|---|
static String |
GOOGLE_GEOCODING_URL |
static String |
GOOGLE_MAPS_URL |
| Constructor and Description |
|---|
GoogleMapsServiceWrapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatAddress(Location address)
Formats the address textual information depending on the implementation
|
GPS |
geocodeAddress(AddressData address)
Translate AddressData to IGPS using 3rd party service
|
GPS |
geocodeAddress(Location address)
Translate IAddress to IGPS using 3rd party service
|
DistanceAndRoute |
getDistanceAndRoute(GPS start,
Location destination)
Get distance and route that is between start GPS location and destination address
|
DistanceAndRoute |
getDistanceAndRoute(Location start,
Location destination)
Get distance and route that is between two addressess
|
protected GoogleMapTools |
getMapTools(String url) |
void |
setGoogleMapTools(GoogleMapTools googleMapTools) |
public static final String GOOGLE_MAPS_URL
public static final String GOOGLE_GEOCODING_URL
protected GoogleMapTools getMapTools(String url)
public GPS geocodeAddress(Location address) throws GeoServiceWrapperException
GeoWebServiceWrappergeocodeAddress in interface GeoWebServiceWrapperGeoServiceWrapperExceptionpublic GPS geocodeAddress(AddressData address) throws GeoServiceWrapperException
GeoWebServiceWrappergeocodeAddress in interface GeoWebServiceWrapperGeoServiceWrapperExceptionpublic DistanceAndRoute getDistanceAndRoute(Location start, Location destination) throws GeoServiceWrapperException
GeoWebServiceWrappergetDistanceAndRoute in interface GeoWebServiceWrapperstart - Locationdestination - LocationDistanceAndRouteGeoServiceWrapperExceptionpublic String formatAddress(Location address) throws GeoServiceWrapperException
GeoWebServiceWrapperformatAddress in interface GeoWebServiceWrapperaddress - LocationStringGeoServiceWrapperExceptionpublic DistanceAndRoute getDistanceAndRoute(GPS start, Location destination) throws GeoServiceWrapperException
GeoWebServiceWrappergetDistanceAndRoute in interface GeoWebServiceWrapperstart - GPSdestination - LocationDistanceAndRouteGeoServiceWrapperExceptionpublic void setGoogleMapTools(GoogleMapTools googleMapTools)
Copyright © 2017 SAP SE. All Rights Reserved.