{"id":19356228,"url":"https://github.com/clarisma/geodesk-py","last_synced_at":"2025-04-09T15:04:18.961Z","repository":{"id":203924925,"uuid":"710223777","full_name":"clarisma/geodesk-py","owner":"clarisma","description":"Fast and storage-efficient spatial database engine for OpenStreetMap data","archived":false,"fork":false,"pushed_at":"2025-04-07T22:23:26.000Z","size":3107,"stargazers_count":38,"open_issues_count":32,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T15:02:20.176Z","etag":null,"topics":["database","geodesk","geospatial","openstreetmap"],"latest_commit_sha":null,"homepage":"https://docs.geodesk.com/python","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clarisma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-26T09:12:25.000Z","updated_at":"2025-04-07T22:23:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1df57be-0ba1-47c9-939d-a2d85bc9d5c2","html_url":"https://github.com/clarisma/geodesk-py","commit_stats":{"total_commits":260,"total_committers":1,"mean_commits":260.0,"dds":0.0,"last_synced_commit":"100f2f65881c248d3fed04e6d8468c03c4b542a1"},"previous_names":["clarisma/geodesk-py"],"tags_count":141,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarisma%2Fgeodesk-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarisma%2Fgeodesk-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarisma%2Fgeodesk-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarisma%2Fgeodesk-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clarisma","download_url":"https://codeload.github.com/clarisma/geodesk-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055276,"owners_count":21040156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","geodesk","geospatial","openstreetmap"],"created_at":"2024-11-10T07:03:31.183Z","updated_at":"2025-04-09T15:04:18.930Z","avatar_url":"https://github.com/clarisma.png","language":"C++","funding_links":[],"categories":["Libraries"],"sub_categories":["Python"],"readme":"\u003cimg src=\"https://docs.geodesk.com/img/github-header.png\"\u003e\n\nGeoDesk is a fast and storage-efficient geospatial database for OpenStreetMap data. \nAlso available [for C++](https://github.com/clarisma/libgeodesk) and [for Java](http://www.github.com/clarisma/geodesk).\n\n## Why GeoDesk?\n\n- **Small storage footprint** \u0026mdash; GeoDesk's GOL files are only 20% to 50% larger than the original OSM data in PBF format \u0026mdash; that's less than a tenth of the storage consumed by a traditional SQL-based database.\n\n- **Fast queries** \u0026mdash; typically 50 times faster than SQL. \n\n- **Fast to get started** \u0026mdash; Converting `.osm.pbf` data to a GOL is 20 times faster than an import into an SQL database. Alternatively, download pre-made data tiles for just the regions you need and automatically assemble them into a GOL.\n\n- **Intuitive API** \u0026mdash; No need for object-relational mapping; GeoDesk queries return Python objects. Quickly discover tags, way-nodes and relation members. Get a feature's geometry, measure its length/area. \n \n- **Proper handling of relations** \u0026mdash; (Traditional geospatial databases deal with geometric shapes and require workarounds to support this unique and powerful aspect of OSM data.)\n\n- **Seamless integration with Shapely** for advanced geometric operations, such as buffer, union, simplify, convex and concave hulls, Voronoi diagrams, and much more.\n\n- **Modest hardware requirements** \u0026mdash; If it can run 64-bit Python, it'll run GeoDesk.\n \n## Get Started\n\n### Requirements\n\n- Python 3.9 or above\n- Java 16 or above (for the GOL Tool)\n \n### Download\n\n```\npip install geodesk\n```\n\n### Create a GOL\n\nCreate a Geographic Object Library based on any `.osm.pbf` file, using the \n[GOL Tool](https://www.geodesk.com/download) (Requires Java 16+).\n\nFor example:\n\n```\ngol build switzerland switzerland-latest.osm.pbf\n```\n\n### Example Application\n\nFind all the pubs in Zurich (Switzerland) and print their names:\n\n```python\nfrom geodesk import *\n\n# Open switzerland.gol\nfeatures = Features(\"switzerland\")      \n\n# Get the feature that represents the area of the city of Zurich\nzurich = features(\"a[boundary=adminstrative][admin_level=8][name:en=Zurich]\").one\n\n# Define a set that contains nodes and areas that are pubs\npubs = features(\"na[amenity=pub]\")\n\n# Iterate through the pubs that are contained in the area of Zurich\n# and print their names\nfor pub in pubs.within(zurich):\n    print(pub.name)        \n```\n\n### More Examples\n\nFind all movie theaters within 500 meters from a given point:\n\n```python\nmovieTheaters = features(\"na[amenity=cinema]\").around(\n    meters=500, lat=47.37, lon=8.54)\n```\n\n*Remember, OSM uses British English for its terminology.*\n\nDiscover the bus routes that traverse a given street:\n\n```python\nfor route in street.parents(\"[route=bus]\")):\n    print(f\"- {route.ref} from {route.from} to {route.to}\")\n```\n\nCount the number of entrances of a building:\n\n```python\nnumber_of_entrances = building.nodes(\"[entrance]\").count\n```\n\n## Documentation\n\n[GeoDesk Developer's Guide](https://docs.geodesk.com/python)\n\n## Related Repositories\n\n- [geodesk](http://www.github.com/clarisma/geodesk) \u0026mdash; GeoDesk for Java\n- [libgeodesk](https://github.com/clarisma/libgeodesk) \u0026mdash; GeoDesk for C++\n- [gol-tool](http://www.github.com/clarisma/gol-tool) \u0026mdash; command-line utility for building, maintaining and querying GOL files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarisma%2Fgeodesk-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarisma%2Fgeodesk-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarisma%2Fgeodesk-py/lists"}