Ejemplo n.º 1
0
        private bool IsBikeLane(string id, Way way)
        {
            if (!IsSeparatedPath(id, way))
            {
                if (way.HasTag("cycleway", "lane") || way.HasTag("cycleway:right", "lane") || way.HasTag("cycleway:middle", "lane") || way.HasTag("cycleway", "opposite_lane"))
                {
                    return(true);
                }
                if (way.TagStartsWith("shoulder"))
                {
                    return(true);
                }
            }

            return(false);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Determines if the way has parking on it.
 /// </summary>
 /// <param name="way"></param>
 /// <returns></returns>
 private bool ParkingPresent(string id, Way way)
 {
     if (way.HasTag("parking", "yes"))
     {
         return(true);
     }
     if (way.TagStartsWith("parking:"))
     {
         foreach (KeyValuePair <string, string> tag in way.Tags)
         {
             string k = tag.Key;
             if (k.StartsWith("parking:lane:"))
             {
                 string v = tag.Value;
                 if (v == "parallel" || v == "perpendicular" || v == "diagonal" || v == "yes" || v == "marked")
                 {
                     return(true);
                 }
             }
         }
     }
     return(false);
 }