1 Geo
Class Ax.geo
Method Summary
Modifier and Type
Method
Description
static Object[]
decodePoly(Ax.text.String encoded)
Decodes a polyline into an array of json objects containing the cordinates.
static double
Computes the geometrical distance in meters between two earth coordinates.
Method Detail
Ax.geo.decodePoly
-
static object[] Ax.geo.decodePoly( string encoded )
- Info:
-
Decodes a polyline into an array of json objects containing the cordinates. - Parameters:
- encoded - the polyline string
- Returns:
- object[]
Ax.geo.distanceTo
-
static double Ax.geo.distanceTo( object lat1, object lon1, object lat2, object lon2 )
- Info:
-
Computes the geometrical distance in meters between two earth coordinates. Use Number for graal compatibility - Parameters:
- lat1 - the latitude of the first point
- lon1 - the longitude of the first point
- lat2 - the latitude of the second point
- lon2 - the longitude of the second point
- Returns:
- double