1 Geo

Class Ax.geo


Method Summary

Modifier and TypeMethodDescription
static Object[] decodePoly(String encoded)Decodes a polyline into an array of json objects containing the cordinates.
static double distanceTo(double lat1, double lon1, double lat2, double lon2)Computes the geometrical distance in meters between two earth coordinates.

Method Detail

decodePoly

static Object[] decodePoly(String encoded)
Info:
Decodes a polyline into an array of json objects containing the cordinates.
Parameters:
encoded - the polyline string
Returns:

distanceTo

static double distanceTo(double lat1, double lon1, double lat2, double lon2)
Info:
Computes the geometrical distance in meters between two earth coordinates.
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: