Example #1
0
 private List <ICompleteOsmGeo> GetRailways(OsmCompleteStreamSource osm)
 {
     return(osm.Where(x => x.Type == OsmGeoType.Way &&
                      x.Tags != null &&
                      x.Tags.ContainsKey("railway"))
            .ToList());
 }
Example #2
0
 private List <ICompleteOsmGeo> GetBuildings(OsmCompleteStreamSource osm) =>
 osm.Where(x => x.Type == OsmGeoType.Way &&
           x.Tags != null &&
           x.Tags.ContainsKey("building"))
 .ToList();