public class GoogleMapsServiceWrapper extends java.lang.Object implements GeoWebServiceWrapper
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GOOGLE_GEOCODING_URL |
static java.lang.String |
GOOGLE_MAPS_URL |
| Constructor and Description |
|---|
GoogleMapsServiceWrapper() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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 addresses
|
protected GoogleMapTools |
getMapTools(java.lang.String url) |
void |
setGoogleMapTools(GoogleMapTools googleMapTools) |
public static final java.lang.String GOOGLE_MAPS_URL
public static final java.lang.String GOOGLE_GEOCODING_URL
protected GoogleMapTools getMapTools(java.lang.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 java.lang.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 © 2018 SAP SE. All Rights Reserved.