public class DefaultMapService extends java.lang.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,
java.util.List<Location> poi,
java.lang.String title)
get titled
Map with all the points of interest and the given radius |
Map |
getMap(GPS center,
double radius,
java.util.List<Location> poi,
java.lang.String title,
Location routeTo)
|
Map |
getMap(GPS gps,
java.lang.String title)
get titled Map centered around the
GPS location. |
Map |
getMap(GPS gps,
java.lang.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 RouteService |
getRouteService() |
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, java.lang.String title)
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 - StringMappublic Map getMap(GPS gps, java.lang.String title, double radius)
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 - Stringradius - radius size as doubleMappublic Map getMap(GPS gps, double radius, java.util.List<Location> poi, java.lang.String title)
MapServiceMap with all the points of interest and the given radiusgetMap in interface MapServicegps - GPSradius - radius size as doublepoi - List of Locationtitle - StringMappublic Map getMap(GPS center, double radius, java.util.List<Location> poi, java.lang.String title, Location routeTo)
MapServicepublic MapBounds getMapBoundsForMap(Map map)
MapServicegetMapBoundsForMap in interface MapServicemap - the map to calculate bounds forprotected GPS determineSouthWestCorner(GPS southWest, Location location)
southWest - the south west bounds cornerlocation - the location that will be assured to be placed inside the rectangleGeoLocatorExceptionprotected GPS determineNorthEastCorner(GPS northEast, Location location)
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)
southWest - the south westnorthEast - the north eastcenterPosition - the center positionGeoLocatorExceptionprotected RouteService getRouteService()
public void setRouteService(RouteService routeService)
Copyright © 2018 SAP SE. All Rights Reserved.