Skip to contents

An sf object containing the URLs, names and file-sizes of the OSM extracts stored at https://download.geofabrik.de/. You can read more details about these data at the following link: https://download.geofabrik.de/technical.html.

Usage

geofabrik_zones

Format

An sf object with 430 rows and 15 columns:

id

A unique identifier. It contains letters, numbers and potentially the characters "-" and "/".

name

The, usually English, long-form name of the area.

parent

The identifier of the next larger excerpts that contains this one, if present.

level

An integer code between 1 and 4. If level = 1 then the zone corresponds to one of the continents plus the Russian Federation: Africa, Antarctica, Asia, Australia and Oceania, Central America, Europe, North America, Russian Federation and South America. If level = 2 then the zone corresponds to the continent's subregions (i.e. the countries, such as Italy, Great Britain, Spain, USA, Mexico, Belize, Morocco, Peru and so on). There are also some exceptions that correspond to the Special Sub Regions (according to their Geofabrik definition), which are: South Africa (includes Lesotho), Alps, Britain and Ireland, Germany + Austria + Switzerland, US Midwest, US Northeast, US Pacific, US South, US West and all US states. Level = 3L correspond to the subregions of each state (or each level 2 zone). For example the West Yorkshire, which is a subregion of England, is a level 3 zone. Finally, level = 4L correspond to the subregions of the third level and it is mainly related to some small areas in Germany. This field is used only for matching operations in case of spatial input.

iso3166-1_alpha2

A character vector of two-letter ISO3166-1 codes. This will be set on the smallest extract that still fully (or mostly) contains the entity with that code; e.g. the code "DE" will be given for the Germany extract and not for Europe even though Europe contains Germany. If an extract covers several countries and no per-country extracts are available (e.g. Israel and Palestine), then several ISO codes will be given (such as "PS IL" for "Palestine and Israel").

iso3166_2

A character vector of usually five-character ISO3166-2 codes. The same rules as above apply. Some entities have both an iso3166-1 and iso3166-2 code. For example, the iso3166_2 code of each US State is "US - " plus the code of the state.

pbf

Link to the latest .osm.pbf file for this region.

bz2

Link to the latest .osm.bz2 file for this region.

shp

Link to the latest shape file for this region.

pbf.internal

Link to the latest .osm.pbf file with user data for this region (requires OSM login).

history

Link to the latest history file for this region (requires OSM login).

taginfo

Link to the Geofabrik taginfo instance for this region.

updates

Link to the updates directory (append /state.txt for status file).

geometry

The sfc for that geographical region. These are not the country boundaries but a buffer around countries.

pbf_file_size

Size of the .pbf file in bytes.

See also

Other provider's-database: bbbike_zones, openstreetmap_fr_zones