public enum SupportedTagKeys extends java.lang.Enum<SupportedTagKeys>
OsmPbfSegmenter
,
OsmXmlSegmenter
,
OSMLayerEnum
Enum Constant and Description |
---|
abandoned
Indicates that this element has been abandoned from its original purpose.
|
admin_level
Specifies the level of administrative control associated with a
boundary , border_type , or
other governmental structures. |
aeroway |
alt_name
Alternate human-readable name of this Node or Way.
|
amenity |
area
Indicates that this Way is an enclosed area rather than an open polyline.
|
attraction |
barrier |
bicycle_repair |
boat_repair |
border_type |
boundary |
bridge
Indicates that this Way is a bridge above some other feature.
|
building
Indicates that this Way is a building rather than an open space.
|
car_repair |
coastline |
colour
Primary color of a map feature.
|
computer_repair |
craft |
cycleway |
diplomatic |
ele |
emergency |
fee |
fixme
Flag indicating this OpenStreetMap record is defective and needs updating.
|
flood_prone
Indicates that whatever this is is prone to flooding.
|
hazmat
Specifies if there are restrictions on transporting Hazardous Materials along this Way.
|
healthcare |
highway |
historic |
icao
ICAO or IATA abbreviation for an airport.
|
intermittent
Indicates that whatever this is does not exist all year round.
|
internet_access
Indicates that this Way or Node provides public Internet access.
|
island
Indicates that the specified Way (probably an area) is an island within a body of water.
|
land_area |
landuse |
lanes
Number of traffic lanes upon a Way (such as a divided highway).
|
layer
Specifies the Z-order of this Way relative to other Ways.
|
leisure |
levels |
lit
Indicates that this Way or Node has artificial illumination.
|
location |
man_made |
maxheight
Specifies the maximum passage height for this Way (restrictions on over-size vehicles), or specifies the peak height or elevation for this Node.
|
maxspeed
Specifies the maximum speed of travel along a Way.
|
maxweight
Specifies the maximum permitted vehicle weight for this Way (restrictions on over-size vehicles).
|
mobile_phone_repair |
motorcycle_repair |
name
Human-readable name of this Node or Way.
|
name_en
English-language human-readable name of the Node or Way.
|
natural |
office |
old_ref
alternate Highway route number or abbreviation.
|
oneway
Indicates this Way has traffic in only one direction.
|
operator
Human-readable name of operator of this Node or Way.
|
place |
power |
railway |
ref
Highway route number or abbreviation.
|
religion |
seamark_landmark_category
OpenSeaMap typing of sea-visible distinctive landmarks.
|
seamark_type
New support for seamarks and the OpenSeaMap dataset.
|
shelter_type |
shoes_repair |
shop |
social_facility |
subway
Indicates that this Node or Way is an underground train rather than a surface one.
|
toll
Indicates that some organization charges a toll or fee to travel on the Way.
|
tourism |
tower_type |
training |
truck_repair |
tunnel
Indicates that this Way is a tunnel below some other feature.
|
type
specifies the type of a Relation member.
|
water |
waterway |
wheelchair |
width
Width of a Way in LengthUnits.
|
Modifier and Type | Field and Description |
---|---|
short |
flags
The set of flags associated with this tag name.
|
boolean |
isAmenityOrWay
Flag indicating whether the
osmEnumType is for a OSM enumeration that can be translated into either
a WayType or an AmenityType , depending on the specific value of the enumeration. |
OSMLayerEnum |
logicalEnum
The encoding enum value for keying the value of this tag in the YAAC compressed map data format.
|
static short |
M_ALTERNATE
Specify that any value associated with this element should only be used for the specified
YAAC attribute if a higher-priority tag key isn't providing the attribute.
|
static short |
M_BUILDING_AMENITY
Specify that this value could be just a Short object for a flags bit to OR in, or an AmenityType that
also implies the IS_BUILDING flag bit.
|
static short |
M_DISUSED
Specify that if the value associated with this is stored, the IS_DISUSED flag should also be set on
the generated Node or Way.
|
static short |
M_LOCALIZABLE
Specify that the value of this tag can be localized.
|
static short |
M_NODE_ONLY
Specify that this tag applies to Nodes.
|
static short |
M_ONE_TOKEN
Specify that the value for this tag must be a single word or phrase, not a sentence
with delimiting commas and/or semicolons as part of the single value.
|
static short |
M_RELATION_ONLY
Specify that this tag applies to Relations.
|
static short |
M_WAY_ONLY
Specify that this tag applies to Ways.
|
static short |
M_YES_NO_ONLY
This tag only has "yes" or "no" values.
|
static short |
MASK_CLASS_SPECIFIC
Specify the set of flags that indicate a record-type specific tag.
|
java.lang.Class<? extends java.lang.Enum> |
osmEnumType
The data type for the enumeration used for the value of this tag, or null if not an enumerated
value or multiple possible types.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
decodeValue(java.lang.String value)
Translate the specified key's value to the appropriate data type.
|
static void |
initValueMap(java.io.PrintStream out)
Load the hashmap that translates string into enum value instances, including using aliases
for the official enums.
|
boolean |
supports(GenericTaggedNode<?> obj)
Report whether this tag key applies to this class of GenericTaggedNode.
|
boolean |
supports(short checkFlags)
Report whether this tag key applies to this class of GenericTaggedNode.
|
static SupportedTagKeys |
value(java.lang.String name)
Get the SupportedTagKey enum corresponding to the specified name.
|
static SupportedTagKeys |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SupportedTagKeys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupportedTagKeys highway
Highway
public static final SupportedTagKeys cycleway
Cycleway
public static final SupportedTagKeys waterway
Waterway
public static final SupportedTagKeys railway
Railway
public static final SupportedTagKeys aeroway
Aeroway
public static final SupportedTagKeys power
Power
public static final SupportedTagKeys amenity
AmenityType
public static final SupportedTagKeys craft
AmenityType
public static final SupportedTagKeys office
AmenityType
public static final SupportedTagKeys shop
AmenityType
public static final SupportedTagKeys emergency
AmenityType
,
Emergency
public static final SupportedTagKeys diplomatic
AmenityType
,
Diplomatic
public static final SupportedTagKeys healthcare
AmenityType
,
Healthcare
public static final SupportedTagKeys historic
Historic
public static final SupportedTagKeys boundary
Boundary
public static final SupportedTagKeys land_area
public static final SupportedTagKeys internet_access
public static final SupportedTagKeys area
public static final SupportedTagKeys abandoned
public static final SupportedTagKeys building
public static final SupportedTagKeys subway
public static final SupportedTagKeys bridge
public static final SupportedTagKeys lit
public static final SupportedTagKeys tunnel
public static final SupportedTagKeys oneway
public static final SupportedTagKeys toll
public static final SupportedTagKeys fee
public static final SupportedTagKeys name
public static final SupportedTagKeys name_en
public static final SupportedTagKeys alt_name
public static final SupportedTagKeys operator
public static final SupportedTagKeys ref
public static final SupportedTagKeys old_ref
public static final SupportedTagKeys border_type
BorderType
public static final SupportedTagKeys barrier
public static final SupportedTagKeys natural
Natural
public static final SupportedTagKeys water
Water
public static final SupportedTagKeys man_made
Man_Made
public static final SupportedTagKeys landuse
LandUse
public static final SupportedTagKeys icao
public static final SupportedTagKeys leisure
Leisure
public static final SupportedTagKeys fixme
public static final SupportedTagKeys width
public static final SupportedTagKeys lanes
public static final SupportedTagKeys island
area
public static final SupportedTagKeys place
Place
public static final SupportedTagKeys layer
public static final SupportedTagKeys admin_level
boundary
, border_type
, or
other governmental structures.public static final SupportedTagKeys intermittent
public static final SupportedTagKeys flood_prone
public static final SupportedTagKeys type
public static final SupportedTagKeys maxspeed
public static final SupportedTagKeys maxheight
public static final SupportedTagKeys levels
public static final SupportedTagKeys ele
public static final SupportedTagKeys maxweight
public static final SupportedTagKeys hazmat
public static final SupportedTagKeys religion
Religion
public static final SupportedTagKeys tourism
AmenityType
,
Tourism
public static final SupportedTagKeys attraction
AmenityType
,
Attraction
,
Tourism
public static final SupportedTagKeys seamark_type
public static final SupportedTagKeys seamark_landmark_category
public static final SupportedTagKeys colour
public static final SupportedTagKeys coastline
public static final SupportedTagKeys location
public static final SupportedTagKeys wheelchair
public static final SupportedTagKeys training
Training
public static final SupportedTagKeys motorcycle_repair
public static final SupportedTagKeys mobile_phone_repair
public static final SupportedTagKeys computer_repair
public static final SupportedTagKeys car_repair
public static final SupportedTagKeys truck_repair
public static final SupportedTagKeys shoes_repair
public static final SupportedTagKeys bicycle_repair
public static final SupportedTagKeys boat_repair
public static final SupportedTagKeys shelter_type
public static final SupportedTagKeys tower_type
public static final SupportedTagKeys social_facility
public static final short M_LOCALIZABLE
public static final short M_WAY_ONLY
public static final short M_NODE_ONLY
public static final short M_YES_NO_ONLY
public static final short M_RELATION_ONLY
public static final short M_ALTERNATE
AmenityType
s
since the GenericTaggedNode.extraAmenities
list attribute was added.public static final short M_DISUSED
public static final short M_BUILDING_AMENITY
public static final short M_ONE_TOKEN
decodeValue(String)
method whether to tokenize the value before calling; the presence of this flag indicates
that semicolons and commas are delimiters between multiple token values (somewhat
confusing given the name of the flag).public static final short MASK_CLASS_SPECIFIC
public final short flags
M_LOCALIZABLE
,
M_NODE_ONLY
,
M_RELATION_ONLY
,
M_WAY_ONLY
,
M_YES_NO_ONLY
public final OSMLayerEnum logicalEnum
public final java.lang.Class<? extends java.lang.Enum> osmEnumType
public final boolean isAmenityOrWay
osmEnumType
is for a OSM enumeration that can be translated into either
a WayType
or an AmenityType
, depending on the specific value of the enumeration. Corresponds to
an Enum implementing the AmenityOrWay
interface, but extracted here to save processing time at import.osmEnumType
,
WayType
,
AmenityType
,
AmenityOrWay
public static SupportedTagKeys[] values()
for (SupportedTagKeys c : SupportedTagKeys.values()) System.out.println(c);
public static SupportedTagKeys valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static void initValueMap(java.io.PrintStream out)
out
- PrintStream to log any detected collisions in aliasespublic static SupportedTagKeys value(java.lang.String name)
name
- String name or alias of SupportedTagKey to findpublic final boolean supports(GenericTaggedNode<?> obj)
obj
- GenericTaggedNode to testpublic final boolean supports(short checkFlags)
checkFlags
- SupportedTagKeys flag bit to check (must be exactly one of the class specific flags)public java.lang.Object decodeValue(java.lang.String value) throws DiscardOSMElementException
value
- String attribute value from the XML fileDiscardOSMElementException
- if subclass thinks that this value implies the whole element (node, way, etc.) should be discarded