public class GeoDistanceFunctionExecutor
extends org.wso2.siddhi.core.executor.function.FunctionExecutor
This method gives the distance between two geo locations in meters
location1Latitude - latitude value of 1st location location1Longitude - longitude value of 1st location location2Latitude - latitude value of 2nd location location2Longitude - longitude value of 2nd location
Accept Type(s) for geo:distance(location1Latitude, location1Longitude, location2Latitude, location2Longitude); location1Latitude : DOUBLE location1Longitude : DOUBLE location2Latitude : DOUBLE location2Longitude : DOUBLE
Return Type(s): DOUBLE
Constructor and Description |
---|
GeoDistanceFunctionExecutor() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
currentState() |
protected Object |
execute(Object data) |
protected Object |
execute(Object[] data) |
org.wso2.siddhi.query.api.definition.Attribute.Type |
getReturnType() |
protected void |
init(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors,
org.wso2.siddhi.core.util.config.ConfigReader configReader,
org.wso2.siddhi.core.config.SiddhiAppContext siddhiAppContext) |
void |
restoreState(Map<String,Object> state) |
protected void init(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors, org.wso2.siddhi.core.util.config.ConfigReader configReader, org.wso2.siddhi.core.config.SiddhiAppContext siddhiAppContext)
init
in class org.wso2.siddhi.core.executor.function.FunctionExecutor
protected Object execute(Object[] data)
execute
in class org.wso2.siddhi.core.executor.function.FunctionExecutor
protected Object execute(Object data)
execute
in class org.wso2.siddhi.core.executor.function.FunctionExecutor
public org.wso2.siddhi.query.api.definition.Attribute.Type getReturnType()
Copyright © 2017 WSO2. All rights reserved.