You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's clear that there are many cases when bulk extract download is not the best way to get OSM data. Would be useful to users to know when osmdata is quicker.
Example: you want cycleways in Louvain-la-Neuve in Belgium. With geofabrik:
# remotes::install_github("itsleeds/geofabrik")
library(geofabrik)
lvn_centroid=tmaptools::geocode_OSM("louvain-la-neuve", as.sf=T)
system.time({ # around 2 secondslvn= get_geofabrik(lvn_centroid)
})
#> although coordinates are longitude/latitude, st_contains assumes that they are planar#> The place is within these geofabrik zones: Europe, Belgium#> Selecting the smallest: Belgium#> Downloading http://download.geofabrik.de/europe/belgium-latest.osm.pbf to #> ~/h/data/osm/Belgium.osm.pbf#> Old attributes: attributes=name,highway,waterway,aerialway,barrier,man_made#> New attributes: attributes=name,highway,waterway,aerialway,barrier,man_made,maxspeed,oneway,building,surface,landuse,natural,start_date,wall,service,lanes,layer,tracktype,bridge,foot,bicycle,lit,railway,footway#> Using ini file that can can be edited with file.edit(/tmp/RtmprktWUQ/ini_new.ini)#> user system elapsed #> 72.514 18.150 269.507
plot(louvain_highway)
It's clear that there are many cases when bulk extract download is not the best way to get OSM data. Would be useful to users to know when
osmdata
is quicker.Example: you want cycleways in Louvain-la-Neuve in Belgium. With geofabrik:
Created on 2020-02-06 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: