public interface GeomapsService
Modifier and Type | Method and Description |
---|---|
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) |
<V> V |
runWithoutGeocoding(Callable<V> callable)
Executes the passed codeblock and suppresses geocoding for Address topics created/updated while execution.
|
void |
setGeomapState(long geomapId,
double lon,
double lat,
int zoom) |
Topic getDomainTopic(long geoCoordId)
GeoCoordinate getGeoCoordinate(Topic geoTopic)
null
if no geo coordinate is stored.null
.GeoCoordinate geoCoordinate(Topic geoCoordTopic)
void addCoordinateToGeomap(long geomapId, long geoCoordId)
void setGeomapState(long geomapId, double lon, double lat, int zoom)
double getDistance(GeoCoordinate coord1, GeoCoordinate coord2)
<V> V runWithoutGeocoding(Callable<V> callable) throws Exception
Exception
Copyright © 2018. All Rights Reserved.