Skip to main content

Downloads OpenStreetMap data by configurations

Project description

openstreetmap-downloader

Downloads OpenStreetMap data by configurations

Setup

# Install dependencies
uv sync

Usage

# Run importer
uv run -m osm_downloader.main

Usage from python

from osm_downloader import osm_download

osm_download()

Configuration

Check osm_config.yaml for a configuration example.

This examples creates a file ./data/borgo_vals/parking.geojson with all records matching the properties in groups.parking (parking areas and EV charging stations).

areas:
  - name: borgo_vals
    place: "Borgo Valsugana, Trentino"
    groups:
      parking:
        - key: "amenity"
          value: "parking"
        - key: "amenity"
          value: "parking_space"
        - key: "amenity"
          value: "charging_station"

A .env file can be used to control those variables

# base path where to save downloaded data
DATA_DIR=./data

# path to config file
CONFIG_PATH=./osm_config.yaml

License

Licensed under Apache-2.0 see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openstreetmap_downloader-1.1.3.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openstreetmap_downloader-1.1.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file openstreetmap_downloader-1.1.3.tar.gz.

File metadata

File hashes

Hashes for openstreetmap_downloader-1.1.3.tar.gz
Algorithm Hash digest
SHA256 b6685be9a55130ee35ce46799f4837206bd933a2c864f76e728b2eb23e88fd3c
MD5 cf42524b61628d32e810fff266fc7efd
BLAKE2b-256 44f3d95ddf0156aff24d616e76a4c09d8118669a238976b57f615d3d7152874e

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstreetmap_downloader-1.1.3.tar.gz:

Publisher: build.yml on celine-eu/osm-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openstreetmap_downloader-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for openstreetmap_downloader-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 593ebcad350b23df2b5850301f4798449337e63a814f0cce6b1a6995181d5d39
MD5 fca74116871b19e3683036d808ec91ca
BLAKE2b-256 7cfc96d599222cf370fa247f35aee2075860eb2180d35812f8d6d6ea08233798

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstreetmap_downloader-1.1.3-py3-none-any.whl:

Publisher: build.yml on celine-eu/osm-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page