| Modifier and Type | Method and Description |
|---|---|
static Point |
MapcodeCodec.decode(String mapcode)
Decode a mapcode to a Point.
|
static Point |
MapcodeCodec.decode(String mapcode,
Territory defaultTerritoryContext)
Decode a mapcode to a Point.
|
static Point |
Point.fromDeg(double latDeg,
double lonDeg)
Create a point from lat/lon in degrees (may be precision!)
|
static Point |
Point.fromMicroDeg(int latMicroDeg,
int lonMicroDeg)
Public construction, from integer microdegrees (no loss of precision).
|
static Point |
Point.fromUniformlyDistributedRandomPoints(Random randomGenerator)
Create a random point, uniformly distributed over the surface of the Earth.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
Point.distanceInMeters(Point p1,
Point p2)
Calculate the distance between two points.
|
static List<Mapcode> |
MapcodeCodec.encode(Point point) |
static List<Mapcode> |
MapcodeCodec.encode(Point point,
Territory restrictToTerritory) |
static Mapcode |
MapcodeCodec.encodeToInternational(Point point) |
static Mapcode |
MapcodeCodec.encodeToShortest(Point point,
Territory restrictToTerritory) |
static boolean |
MapcodeCodec.isNearMultipleBorders(Point point,
Territory territory)
Is coordinate near multiple territory borders?
|
Copyright © 2017 Stichting Mapcode Foundation. All rights reserved.