Skip to contents

Data from edinburgh's OSM network

Format

An sf data frame

Examples

library(sf)
names(osm_edinburgh)
#>  [1] "osm_id"     "name"       "highway"    "cycleway"   "bicycle"   
#>  [6] "lanes"      "sidewalk"   "segregated" "maxspeed"   "other_tags"
#> [11] "geometry"  
head(osm_edinburgh)
#> Simple feature collection with 6 features and 10 fields
#> Geometry type: MULTILINESTRING
#> Dimension:     XY
#> Bounding box:  xmin: -3.194737 ymin: 55.95514 xmax: -3.186586 ymax: 55.95921
#> Geodetic CRS:  WGS 84
#>      osm_id                   name     highway cycleway bicycle lanes sidewalk
#> 71  3992791             York Place    tertiary     <NA>    <NA>     1     <NA>
#> 185 4049896           Leith Street     primary     <NA>    <NA>     2     <NA>
#> 197 4071161       Broughton Street   secondary     <NA>    <NA>     2     both
#> 198 4071162          Dublin Street residential     <NA>    <NA>  <NA>     both
#> 241 4084027 North St Andrew Street  pedestrian     <NA>    <NA>  <NA>     <NA>
#> 242 4084028   North St Andrew Lane     service     <NA>    <NA>  <NA>     <NA>
#>     segregated maxspeed
#> 71        <NA>   20 mph
#> 185       <NA>   20 mph
#> 197       <NA>   20 mph
#> 198       <NA>   20 mph
#> 241       <NA>     <NA>
#> 242       <NA>     <NA>
#>                                                                                               other_tags
#> 71  "embedded_rails"=>"tram","sidewalk:left"=>"separate","sidewalk:right"=>"no","wikidata"=>"Q102108491"
#> 185                                               "lit"=>"yes","ref"=>"A900","sidewalk:both"=>"separate"
#> 197                  "incline"=>"up","lit"=>"yes","ref"=>"B901","sidewalk:both:surface"=>"paving_stones"
#> 198                                                                         "incline"=>"up","lit"=>"yes"
#> 241                                                                           "foot"=>"yes","lit"=>"yes"
#> 242                                                                                                 <NA>
#>                           geometry
#> 71  MULTILINESTRING ((-3.187851...
#> 185 MULTILINESTRING ((-3.186586...
#> 197 MULTILINESTRING ((-3.190781...
#> 198 MULTILINESTRING ((-3.194218...
#> 241 MULTILINESTRING ((-3.192841...
#> 242 MULTILINESTRING ((-3.194737...
plot(osm_edinburgh)
#> Warning: plotting the first 9 out of 10 attributes; use max.plot = 10 to plot all