{"id":20068549,"url":"https://github.com/tofull/networkx-osm","last_synced_at":"2025-05-05T19:31:20.924Z","repository":{"id":220589285,"uuid":"229349108","full_name":"Tofull/networkx-osm","owner":"Tofull","description":"import open street map data as a networkx graph","archived":false,"fork":false,"pushed_at":"2019-12-20T23:10:02.000Z","size":1715,"stargazers_count":22,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T02:53:38.678Z","etag":null,"topics":["graph","networkx","osm","parser","road","shapefile","shp"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tofull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-12-20T23:09:14.000Z","updated_at":"2024-03-20T01:36:00.000Z","dependencies_parsed_at":"2024-02-02T23:36:42.705Z","dependency_job_id":null,"html_url":"https://github.com/Tofull/networkx-osm","commit_stats":null,"previous_names":["tofull/networkx-osm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tofull%2Fnetworkx-osm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tofull%2Fnetworkx-osm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tofull%2Fnetworkx-osm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tofull%2Fnetworkx-osm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tofull","download_url":"https://codeload.github.com/Tofull/networkx-osm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224461746,"owners_count":17315116,"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":["graph","networkx","osm","parser","road","shapefile","shp"],"created_at":"2024-11-13T14:07:30.642Z","updated_at":"2024-11-13T14:07:31.289Z","avatar_url":"https://github.com/Tofull.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSM Road Parser\nConvert a Open Street Maps `.map` format file into a networkx directional graph.\n\nThis parser is based on the osm to networkx tool from aflaxman : https://gist.github.com/aflaxman/287370/\n\n\nAdded :\n- python3.6 compatibility\n- networkx v2 compatibility\n- cache to avoid downloading the same osm tiles again and again\n- distance computation to estimate length of each ways (useful to compute the shortest path)\n\n# Installation\n```sh\npip install -r requirements.txt\n```\n\n# Examples\n![OSM exporter](doc/osm_road_exporter.png)\n![Networkx graph](doc/osm_networkx_graph.png)\n![OSM to SHP](doc/osm_to_shp.png)\n\n- Download osm data and display the networkx graph into matplotlib.\n\n    ```sh\n    python examples/display_osm_graph.py\n    ```\n- Load osm data from a `.map` file and convert the graph to shapefile\n    ```sh\n    # Requires osgeo python package --\u003e https://pythongisandstuff.wordpress.com/2016/04/13/installing-gdal-ogr-for-python-on-windows/\n    python examples/convert_osm_to_shp.py\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftofull%2Fnetworkx-osm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftofull%2Fnetworkx-osm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftofull%2Fnetworkx-osm/lists"}