Skip to contents

Data from edinburgh's OSM network

Format

An sf data frame

Examples

library(sf)
names(osm_edinburgh)
#>  [1] "osm_id"                    "name"                     
#>  [3] "highway"                   "cycleway"                 
#>  [5] "cycleway_left"             "cycleway_right"           
#>  [7] "cycleway_both"             "cycleway_left_bicycle"    
#>  [9] "cycleway_right_bicycle"    "cycleway_both_bicycle"    
#> [11] "cycleway_left_segregated"  "cycleway_right_segregated"
#> [13] "cycleway_both_segregated"  "cycleway_surface"         
#> [15] "cycleway_width"            "cycleway_est_width"       
#> [17] "cycleway_buffered_lane"    "bicycle"                  
#> [19] "lanes"                     "foot"                     
#> [21] "path"                      "sidewalk"                 
#> [23] "segregated"                "maxspeed"                 
#> [25] "width"                     "lit"                      
#> [27] "oneway"                    "surface"                  
#> [29] "smoothness"                "other_tags"               
#> [31] "geometry"                 
head(osm_edinburgh)
#> Simple feature collection with 6 features and 30 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 cycleway_left
#> 71  3992791             York Place    tertiary     <NA>      separate
#> 185 4049896           Leith Street     primary     <NA>          <NA>
#> 197 4071161       Broughton Street   secondary     <NA>          <NA>
#> 198 4071162          Dublin Street residential     <NA>          <NA>
#> 241 4084027 North St Andrew Street  pedestrian     <NA>          <NA>
#> 242 4084028   North St Andrew Lane     service     <NA>          <NA>
#>     cycleway_right cycleway_both cycleway_left_bicycle cycleway_right_bicycle
#> 71              no          <NA>                  <NA>                   <NA>
#> 185           <NA>      separate                  <NA>                   <NA>
#> 197           <NA>            no                  <NA>                   <NA>
#> 198           <NA>          <NA>                  <NA>                   <NA>
#> 241           <NA>          <NA>                  <NA>                   <NA>
#> 242           <NA>          <NA>                  <NA>                   <NA>
#>     cycleway_both_bicycle cycleway_left_segregated cycleway_right_segregated
#> 71                   <NA>                     <NA>                      <NA>
#> 185                  <NA>                     <NA>                      <NA>
#> 197                  <NA>                     <NA>                      <NA>
#> 198                  <NA>                     <NA>                      <NA>
#> 241                  <NA>                     <NA>                      <NA>
#> 242                  <NA>                     <NA>                      <NA>
#>     cycleway_both_segregated cycleway_surface cycleway_width cycleway_est_width
#> 71                      <NA>             <NA>           <NA>               <NA>
#> 185                     <NA>             <NA>           <NA>               <NA>
#> 197                     <NA>             <NA>           <NA>               <NA>
#> 198                     <NA>             <NA>           <NA>               <NA>
#> 241                     <NA>             <NA>           <NA>               <NA>
#> 242                     <NA>             <NA>           <NA>               <NA>
#>     cycleway_buffered_lane bicycle lanes foot path sidewalk segregated maxspeed
#> 71                    <NA>    <NA>     1 <NA> <NA>     <NA>       <NA>   20 mph
#> 185                   <NA>    <NA>     2 <NA> <NA>     <NA>       <NA>   20 mph
#> 197                   <NA>    <NA>     2 <NA> <NA>     both       <NA>   20 mph
#> 198                   <NA>    <NA>  <NA> <NA> <NA>     both       <NA>   20 mph
#> 241                   <NA>    <NA>  <NA>  yes <NA>     <NA>       <NA>     <NA>
#> 242                   <NA>    <NA>  <NA> <NA> <NA>     <NA>       <NA>     <NA>
#>     width  lit oneway surface smoothness
#> 71   <NA> <NA>    yes asphalt       <NA>
#> 185  <NA>  yes    yes asphalt       <NA>
#> 197  <NA>  yes   <NA> asphalt       good
#> 198  <NA>  yes   <NA> asphalt       <NA>
#> 241  <NA>  yes   <NA>    sett       <NA>
#> 242  <NA> <NA>    yes asphalt       <NA>
#>                                                                                               other_tags
#> 71  "embedded_rails"=>"tram","sidewalk:left"=>"separate","sidewalk:right"=>"no","wikidata"=>"Q102108491"
#> 185                                                            "ref"=>"A900","sidewalk:both"=>"separate"
#> 197                               "incline"=>"up","ref"=>"B901","sidewalk:both:surface"=>"paving_stones"
#> 198                                                                                      "incline"=>"up"
#> 241                                                                                                 <NA>
#> 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 30 attributes; use max.plot = 30 to plot all