Skip to content

Commit

Permalink
Adding Ice Road Tag and Updating Access Tag Values (#194)
Browse files Browse the repository at this point in the history
* Adding Ice Road Tag

* Adding public access tag value
  • Loading branch information
MikeGost authored and matthieun committed Aug 13, 2018
1 parent a2764a0 commit 7bf1f36
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/openstreetmap/atlas/tags/AccessTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public enum AccessTag
DESTINATION,
CUSTOMERS,
PROHIBITED,
PUBLIC,
RESTRICTED,
UNKNOWN;

Expand Down
27 changes: 27 additions & 0 deletions src/main/java/org/openstreetmap/atlas/tags/IceRoadTag.java
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);
}
}

0 comments on commit 7bf1f36

Please sign in to comment.