Exemple #1
0
 protected override bool IsVehicleAllowed(TagsCollectionBase tags, string highwayType)
 {
     if (!tags.InterpretAccessValues((IEnumerable <string>) this.VehicleTypes, "access"))
     {
         return(false);
     }
     return(this.AccessibleTags.ContainsKey(highwayType));
 }
Exemple #2
0
 protected override bool IsVehicleAllowed(TagsCollectionBase tags, string highwayType)
 {
     if (!tags.InterpretAccessValues((IEnumerable <string>) this.VehicleTypes, "access"))
     {
         return(false);
     }
     if (tags.ContainsKey("foot"))
     {
         if (tags["foot"] == "designated" || tags["foot"] == "yes")
         {
             return(true);
         }
         if (tags["foot"] == "no")
         {
             return(false);
         }
     }
     return(this.AccessibleTags.ContainsKey(highwayType));
 }