de.deepamehta.plugins.geomaps.service
Interface GeomapsService

Show UML class diagram
All Superinterfaces:
PluginService
All Known Implementing Classes:
GeomapsPlugin

public interface GeomapsService
extends PluginService


Method Summary
 void addCoordinateToGeomap(long geomapId, long geoCoordId)
          Adds a Geo Coordinate topic to a geomap.
 GeoCoordinate geoCoordinate(Topic geoCoordTopic)
          Returns the geo coordinate encoded in a Geo Coordinate topic.
 double getDistance(GeoCoordinate coord1, GeoCoordinate coord2)
          Calculates the distance between 2 geo coordinates in kilometer.
 Topic getDomainTopic(long geoCoordId)
          Finds the domain topic that corresponds to a Geo Coordinate topic.
 GeoCoordinate getGeoCoordinate(Topic geoTopic)
          Returns the geo coordinate of a geo-facetted topic (e.g.
 Geomap getGeomap(long geomapId)
           
 void setGeomapState(long geomapId, double lon, double lat, int zoom)
           
 

Method Detail

getGeomap

Geomap getGeomap(long geomapId)

getDomainTopic

Topic getDomainTopic(long geoCoordId)
Finds the domain topic that corresponds to a Geo Coordinate topic.


getGeoCoordinate

GeoCoordinate getGeoCoordinate(Topic geoTopic)
Returns the geo coordinate of a geo-facetted topic (e.g. an Address), or null if no geo coordinate is stored.

Returns:
the geo coordinate, or null.

geoCoordinate

GeoCoordinate geoCoordinate(Topic geoCoordTopic)
Returns the geo coordinate encoded in a Geo Coordinate topic.


addCoordinateToGeomap

void addCoordinateToGeomap(long geomapId,
                           long geoCoordId)
Adds a Geo Coordinate topic to a geomap.


setGeomapState

void setGeomapState(long geomapId,
                    double lon,
                    double lat,
                    int zoom)

getDistance

double getDistance(GeoCoordinate coord1,
                   GeoCoordinate coord2)
Calculates the distance between 2 geo coordinates in kilometer.



Copyright © 2015. All Rights Reserved.