public class DefaultMapService extends Object implements MapService
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_RADIUS |
| Constructor and Description |
|---|
DefaultMapService() |
| Modifier and Type | Method and Description |
|---|---|
protected GPS |
determineNorthEastCorner(GPS northEast,
Location location)
Determine north east corner for given southWest corner and location.
|
protected GPS |
determineSouthWestCorner(GPS southWest,
Location location)
Determine south west corner for given southWest corner and location.
|
Map |
getMap(GPS gps,
double radius,
List<Location> poi,
String title)
get titled
Map with all the points of interest and the given radius |
Map |
getMap(GPS center,
double radius,
List<Location> poi,
String title,
Location routeTo)
|
Map |
getMap(GPS gps,
String title)
get titled Map centered around the
GPS location. |
Map |
getMap(GPS gps,
String title,
double radius)
get titled Map centered around the
GPS location with a given radius. |
MapBounds |
getMapBoundsForMap(Map map)
Gets the map bounds of the given map.
|
protected MapBounds |
recalculateBoundsAgainstMapCenter(GPS southWest,
GPS northEast,
GPS centerPosition)
Recalculate map corners against map center.
|
void |
setRouteService(RouteService routeService) |
public static final double DEFAULT_RADIUS
public Map getMap(GPS gps, String title) throws MapServiceException
MapServiceGPS location. Default radius 5[km] will be used. As no additional
placemarks are required, returned map object that has null KML member Map.getKml().getMap in interface MapServicegps - GPStitle - StringMapMapServiceExceptionpublic Map getMap(GPS gps, String title, double radius) throws MapServiceException
MapServiceGPS location with a given radius. As no additional placemarks are
required, returned map object that has null KML member Map.getKml().getMap in interface MapServicegps - GPStitle - StringMapMapServiceExceptionpublic Map getMap(GPS gps, double radius, List<Location> poi, String title) throws MapServiceException
MapServiceMap with all the points of interest and the given radiusgetMap in interface MapServicegps - GPSradius - doublepoi - List of Locationtitle - StringMapMapServiceExceptionpublic Map getMap(GPS center, double radius, List<Location> poi, String title, Location routeTo) throws MapServiceException
MapServiceMap that contains list of POIs and a route from the center GPS location to the
'routeTo' LocationgetMap in interface MapServicecenter - GPSradius - doublepoi - List of Locationtitle - StringrouteTo - LocationMapMapServiceExceptionpublic MapBounds getMapBoundsForMap(Map map) throws GeoLocatorException
MapServicegetMapBoundsForMap in interface MapServicemap - the map to calculate bounds forGeoLocatorException - the geo locator exceptionprotected GPS determineSouthWestCorner(GPS southWest, Location location) throws GeoLocatorException
southWest - the south west bounds cornerlocation - the location that will be assured to be placed inside the rectangleGeoLocatorExceptionprotected GPS determineNorthEastCorner(GPS northEast, Location location) throws GeoLocatorException
northEast - the north east bounds cornderlocation - the location that will be assured to be placed inside the rectangleGeoLocatorException - the geo locator exceptionprotected MapBounds recalculateBoundsAgainstMapCenter(GPS southWest, GPS northEast, GPS centerPosition) throws GeoLocatorException
southWest - the south westnorthEast - the north eastcenterPosition - the center positionGeoLocatorExceptionpublic void setRouteService(RouteService routeService)
Copyright © 2017 SAP SE. All Rights Reserved.