-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Ice Road Tag and Updating Access Tag Values (#194)
* Adding Ice Road Tag * Adding public access tag value
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ public enum AccessTag | |
DESTINATION, | ||
CUSTOMERS, | ||
PROHIBITED, | ||
PUBLIC, | ||
RESTRICTED, | ||
UNKNOWN; | ||
|
||
|
27 changes: 27 additions & 0 deletions
27
src/main/java/org/openstreetmap/atlas/tags/IceRoadTag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.openstreetmap.atlas.tags; | ||
|
||
import org.openstreetmap.atlas.tags.annotations.Tag; | ||
import org.openstreetmap.atlas.tags.annotations.TagKey; | ||
import org.openstreetmap.atlas.tags.annotations.validation.Validators; | ||
|
||
/** | ||
* OSM ice_road tag. | ||
* | ||
* @author jacker | ||
*/ | ||
@Tag(taginfo = "https://taginfo.openstreetmap.org/keys/ice_road#values", osm = "https://wiki.openstreetmap.org/wiki/Key:ice_road") | ||
public enum IceRoadTag | ||
{ | ||
YES, | ||
SNOWMOBILE, | ||
NO; | ||
|
||
@TagKey | ||
public static final String KEY = "ice_road"; | ||
|
||
public static boolean isYes(final Taggable taggable) | ||
{ | ||
return Validators.isOfType(taggable, IceRoadTag.class, IceRoadTag.YES, | ||
IceRoadTag.SNOWMOBILE); | ||
} | ||
} |