Exemple #1
0
 /**
  * Returns the ODK defined label for a OSM tag key if exists * *
  *
  * @param key
  * @return
  */
 public String getTagKeyLabel(String key) {
   ODKTag tag = requiredTags.get(key);
   if (tag != null) {
     return tag.getLabel();
   }
   return null;
 }
Exemple #2
0
 /**
  * Returns the ODK defined label for an OSM tag value if exists * *
  *
  * @param key
  * @param value
  * @return
  */
 public String getTagValueLabel(String key, String value) {
   ODKTag tag = requiredTags.get(key);
   if (tag != null) {
     ODKTagItem item = tag.getItem(value);
     return item.getLabel();
   }
   return null;
 }