Package: osmextract

Andrea Gilardi

osmextract: Download and Import Open Street Map Data Extracts

Match, download, convert and import Open Street Map data extracts obtained from several providers.

Authors:Andrea Gilardi [aut, cre], Robin Lovelace [aut], Barry Rowlingson [ctb], Salva Fernández [rev], Nicholas Potter [rev]

osmextract.pdf |osmextract.html
osmextract/json (API)

# Install osmextract in R:
install.packages('osmextract', repos = c('', ''))

Peer review:

Bug tracker:

  • bbbike_zones - An sf object of geographical zones taken from
  • geofabrik_zones - An sf object of geographical zones taken from
  • openstreetmap_fr_zones - An sf object of geographical zones taken from
  • test_zones - An sf object of geographical zones taken from



15 exports 163 stars 5.09 score 21 dependencies 943 downloads

Last updated 10 days agofrom:18aba5683fef83c7593900b3fbe4e318c4d508f8 (via master)



Add new OpenStreetMap providers

Rendered fromproviders.Rmdusingknitr::rmarkdownon Jun 10 2024.

Last update: 2021-01-27
Started: 2020-07-10

Comparing the supported OSM providers

Rendered fromproviders_comparisons.Rmdusingknitr::rmarkdownon Jun 10 2024.

Last update: 2021-04-07
Started: 2020-09-30

Introducing osmextract

Rendered fromosmextract.Rmdusingknitr::rmarkdownon Jun 10 2024.

Last update: 2024-04-30
Started: 2020-07-31

Readme and manuals

Help Manual

Help pageTopics
An sf object of geographical zones taken from bbbike.orgbbbike_zones
An sf object of geographical zones taken from geofabrik.degeofabrik_zones
Clean download directoryoe_clean
Download a file given a urloe_download
Return the download directory used by the packageoe_download_directory
Get the path of .pbf and .gpkg files associated with an input OSM extractoe_find
Find, download, translate and read OSM extracts from several providersoe_get
Get the administrative boundary for a given placeoe_get_boundary
Return keys and (optionally) values stored in "other_tags" columnoe_get_keys oe_get_keys.character oe_get_keys.default oe_get_keys.sf print.oe_key_values_list
Import transport networks used by a specific mode of transportoe_get_network
Match input place with a urloe_match oe_match.bbox oe_match.character oe_match.default oe_match.numeric oe_match.sf oe_match.sfc
Check patterns in the provider's databasesoe_match_pattern oe_match_pattern.bbox oe_match_pattern.character oe_match_pattern.numeric oe_match_pattern.sf oe_match_pattern.sfc
Summary of available providersoe_providers
Read a .pbf or .gpkg object from file or urloe_read
Search for a place and return an sf data frame locating itoe_search
Update all the .osm.pbf files saved in a directoryoe_update
Translate a .osm.pbf file into .gpkg formatoe_vectortranslate
An sf object of geographical zones taken from download.openstreetmap.fropenstreetmap_fr_zones
Read a '.poly' file.read_poly
An sf object of geographical zones taken from download.openstreetmap.frtest_zones