5. Fetch asset data¶
Fetch roads¶
-
gmtra.fetch.
roads
(data_path, area_name, regional=False)[source]¶ Function to extract all road assets from an .osm.pbf file.
- Arguments:
data_path : file path to location of all data.
area_name: Admin code of the countryor region for which we want to extract the roads.
- Optional Arguments:
- regional : Set to True if we want to extract a region.
Fetch railway¶
-
gmtra.fetch.
railway
(data_path, country, regional=True)[source]¶ Function to extract all railway assets from an .osm.pbf file.
- Arguments:
data_path : file path to location of all data.
area_name: Admin code of the countryor region for which we want to extract the roads.
- Optional Arguments:
- regional : Set to True if we want to extract a region.
Fetch bridges¶
-
gmtra.fetch.
bridges
(data_path, area_name, regional=True)[source]¶ Function to extract all bridges from an .osm.pbf file.
- Arguments:
data_path : file path to location of all data.
area_name: Admin code of the countryor region for which we want to extract the roads.
- Optional Arguments:
- regional : Set to True if we want to extract a region.