public abstract class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.vividsolutions.jts.geom.GeometryFactory |
geometryFactory |
static double |
METERS_PER_DEGREE_LATITUDE |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureValidNamespace(String namespace)
Ensures namespace is valid by ensuring it only has alphanumeric characters or the underscore
for all characters in the string
|
static double |
fastDistance(double lat0,
double lon0,
double lat1,
double lon1) |
static String |
getCoordString(Stop stop) |
static String |
human(int n) |
static com.vividsolutions.jts.geom.Coordinate |
projectLatLonToMeters(double lat,
double lon) |
static String |
randomIdString()
Generate a random unique prefix of n lowercase letters.
|
static double |
xMetersForLon(double latDegrees,
double lonDegrees) |
static double |
yMetersForLat(double latDegrees) |
public static com.vividsolutions.jts.geom.GeometryFactory geometryFactory
public static final double METERS_PER_DEGREE_LATITUDE
public static String human(int n)
public static double yMetersForLat(double latDegrees)
public static double xMetersForLon(double latDegrees,
double lonDegrees)
public static com.vividsolutions.jts.geom.Coordinate projectLatLonToMeters(double lat,
double lon)
public static double fastDistance(double lat0,
double lon0,
double lat1,
double lon1)
public static String randomIdString()
public static void ensureValidNamespace(String namespace) throws InvalidNamespaceException
namespace - InvalidNamespaceExceptionCopyright © 2019. All rights reserved.