Skip to main content

Add your description here

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.2.tar.gz (9.4 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.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for openstreetmap_downloader-1.1.2.tar.gz
Algorithm Hash digest
SHA256 a81dbf1785a58c942115269137fcfe78915b05a38c88e3f9a19c83cd46275f8c
MD5 e71027dc4fcd088109f9e84e1b1ad002
BLAKE2b-256 52a670bfd28643a71412744cd15be50e943c09e198f4ac7d7efbbc7ff1bf5c5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstreetmap_downloader-1.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for openstreetmap_downloader-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 004f97f428e06e841526bbaa3c70daceaa434f1c62f45936f945cb563d6e8297
MD5 8a0a8694aeb906a9b98f20d480071498
BLAKE2b-256 0a978cade15ddb785cdf6e9e2260f9ad95af11d377ac817042c7aa342d8a1207

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstreetmap_downloader-1.1.2-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