Interface MapService

  • All Known Implementing Classes:
    DefaultMapService

    public interface MapService
    Provides maps query point.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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 gps, double radius, java.util.List<Location> poi, java.lang.String title, Location routeTo)
      Returns the Map that contains list of POIs and a route from the center GPS location to the 'routeTo' Location
      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.
    • Method Detail

      • getMap

        Map getMap​(GPS gps,
                   java.lang.String title,
                   double radius)
            throws MapServiceException
        get titled Map centered around the GPS location with a given radius. As no additional placemarks are required, returned map object that has null KML member Map.getKml().
        Parameters:
        gps - GPS
        title - String
        radius - 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 the GPS location. Default radius 5[km] will be used. As no additional placemarks are required, returned map object that has null KML member Map.getKml().
        Parameters:
        gps - GPS
        title - 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 titled Map with all the points of interest and the given radius
        Parameters:
        gps - GPS
        radius - radius size as double
        poi - List of Location
        title - String
        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