Skip to main content

Python SDK for the MapLark OSM GeoJSON API to query OpenStreetMap data easily.

Project description

osmgeojson-python

Python SDK for the MapLark OSM GeoJSON API with auto-pagination, bounding box chunking, retry/backoff, pandas/geopandas output, async support, and convenience methods to get common OSM data such as buildings, amenities, bike roads, etc.

pip install osmgeojson
pip install "osmgeojson[geo]"   # pandas / geopandas / shapely support

Quick start

from osmgeojson import OSMGeoJSONClient

with OSMGeoJSONClient(api_key="sk-...") as client:
    fc = client.query(bbox="18.06,59.32,18.09,59.34", tags=["building"])
    print(len(fc.features), "buildings found")

See the full docs for async support, bbox chunking, CLI usage, and convenience helpers.

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

osmgeojson-0.1.0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

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

osmgeojson-0.1.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file osmgeojson-0.1.0.tar.gz.

File metadata

  • Download URL: osmgeojson-0.1.0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for osmgeojson-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6d220d07afe437d0e6375ab1a6f9446cb3de86849386510ddbd2cb7cd56fdecd
MD5 68fbbb7391e96a1971faa87a56d6a2dd
BLAKE2b-256 374d77570d38e7a5e2586dd2a80fd94547f02137e4c678863889176b6b82a92e

See more details on using hashes here.

File details

Details for the file osmgeojson-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: osmgeojson-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for osmgeojson-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d789b4845303061e3b1e6263fd26435c8c44eb2e0edd027878ca0a8731678a09
MD5 4d1988b9062e7c3d8c709f38ddb4c3b1
BLAKE2b-256 f0df6452b98168b010568d169e80274369619431562e067c405d46e2234a8582

See more details on using hashes here.

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