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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d220d07afe437d0e6375ab1a6f9446cb3de86849386510ddbd2cb7cd56fdecd
|
|
| MD5 |
68fbbb7391e96a1971faa87a56d6a2dd
|
|
| BLAKE2b-256 |
374d77570d38e7a5e2586dd2a80fd94547f02137e4c678863889176b6b82a92e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d789b4845303061e3b1e6263fd26435c8c44eb2e0edd027878ca0a8731678a09
|
|
| MD5 |
4d1988b9062e7c3d8c709f38ddb4c3b1
|
|
| BLAKE2b-256 |
f0df6452b98168b010568d169e80274369619431562e067c405d46e2234a8582
|