| Modifier and Type | Field and Description |
|---|---|
static Set<Territory> |
Territory.PARENT_TERRITORIES |
| Modifier and Type | Method and Description |
|---|---|
static Territory |
Territory.fromString(String alphaCode)
Get a territory from a mapcode territory abbreviation (or a territory name).
|
static Territory |
Territory.fromString(String alphaCode,
Territory parentTerritory)
Get a territory from a name, specifying a parent territory for disambiguation.
|
Territory |
Territory.getParentTerritory()
Return the parent territory.
|
Territory |
Mapcode.getTerritory()
Get the territory information.
|
static Territory |
Territory.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Territory[] |
Territory.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Point |
MapcodeCodec.decode(String mapcode,
Territory defaultTerritoryContext)
Decode a mapcode to a Point.
|
static List<Mapcode> |
MapcodeCodec.encode(double latDeg,
double lonDeg,
Territory restrictToTerritory)
Encode a lat/lon pair to a mapcode with territory information, for a specific territory.
|
static List<Mapcode> |
MapcodeCodec.encode(Point point,
Territory restrictToTerritory) |
static Mapcode |
MapcodeCodec.encodeToShortest(double latDeg,
double lonDeg,
Territory restrictToTerritory)
Encode a lat/lon pair to its shortest mapcode with territory information.
|
static Mapcode |
MapcodeCodec.encodeToShortest(Point point,
Territory restrictToTerritory) |
static Territory |
Territory.fromString(String alphaCode,
Territory parentTerritory)
Get a territory from a name, specifying a parent territory for disambiguation.
|
static boolean |
MapcodeCodec.isNearMultipleBorders(Point point,
Territory territory)
Is coordinate near multiple territory borders?
|
| Constructor and Description |
|---|
Mapcode(String code,
Territory territory)
Create a mapcode object.
|
Copyright © 2017 Stichting Mapcode Foundation. All rights reserved.