Interface MapService
-
- All Known Implementing Classes:
DefaultMapService
public interface MapServiceProvides maps query point.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MapgetMap(GPS gps, double radius, java.util.List<Location> poi, java.lang.String title)get titledMapwith all the points of interest and the given radiusMapgetMap(GPS gps, double radius, java.util.List<Location> poi, java.lang.String title, Location routeTo)MapgetMap(GPS gps, java.lang.String title)get titled Map centered around theGPSlocation.MapgetMap(GPS gps, java.lang.String title, double radius)get titled Map centered around theGPSlocation with a given radius.MapBoundsgetMapBoundsForMap(Map map)Gets the map bounds of the given map.
-
-
-
Method Detail
-
getMap
Map getMap(GPS gps, java.lang.String title, double radius) throws MapServiceException
get titled Map centered around theGPSlocation with a given radius. As no additional placemarks are required, returned map object that has null KML memberMap.getKml().- Parameters:
gps-GPStitle-Stringradius- radius size as double- Returns:
Map- Throws:
MapServiceException- in the case of error
-
getMap
Map getMap(GPS gps, java.lang.String title) throws MapServiceException
get titled Map centered around theGPSlocation. Default radius 5[km] will be used. As no additional placemarks are required, returned map object that has null KML memberMap.getKml().- Parameters:
gps-GPStitle-String- Returns:
Map- Throws:
MapServiceException- in the case of error
-
getMap
Map getMap(GPS gps, double radius, java.util.List<Location> poi, java.lang.String title) throws MapServiceException
get titledMapwith all the points of interest and the given radius- Parameters:
gps-GPSradius- radius size as doublepoi-ListofLocationtitle-String- Returns:
Map- Throws:
MapServiceException- in the case of error
-
getMap
Map getMap(GPS gps, double radius, java.util.List<Location> poi, java.lang.String title, Location routeTo) throws MapServiceException
Returns theMapthat contains list of POIs and a route from the centerGPSlocation to the 'routeTo'Location- Parameters:
gps-GPSradius- radius size as doublepoi-ListofLocationtitle-StringrouteTo-Location- Returns:
Map- Throws:
MapServiceException- in the case of error
-
getMapBoundsForMap
MapBounds getMapBoundsForMap(Map map) throws GeoLocatorException
Gets the map bounds of the given map. Calculations are perfomed basing on rectangular coordinates, not just a radius.- Parameters:
map- the map to calculate bounds for- Returns:
- the calculated map bounds
- Throws:
GeoLocatorException- the geo locator exception
-
-