{ "info": { "author": "Zhongpu Chen", "author_email": "chenloveit@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Summary\n\nProcess OSM data with python 3. This project is mainly motivated by [openstreetmap](https://github.com/johnyf/openstreetmap).\n\n# Dependencies\n\n- [scipy](https://www.scipy.org/), [numpy](http://www.numpy.org/)\n- [networkx](https://networkx.github.io/)\n\n# Install\nYou can install [osmRoad](https://pypi.org/project/osmRoad/) via `pip`.\n\n```shell\npip install osmRoad\n```\n\n# Usage\n\n```\nfrom osm import parser\nfrom osm import road\n```\n## parser\n- `load_parse_osm`: return `bounds`, `nodes`, `ways`\n- `load_parse_osmxy`: different from above, return `nodes` with coodinates\n\n## road\n- `extract_connectivity`: return the adjecent matrix `lil_matrix` (without weights)\n- `extract_adj`: return the adjecent list (without weights)\n- `extract_edges`: return the edges (without weights)\n- `build_graph`: return a `graph` in `networkx` (with weights)\n\n# Example\n\n```\nparsed_osm = parser.load_parse_osmxy(r\"osm/Beijing.osm\")\nr = road.build_graph(parsed_osm)\nprint(nx.dijkstra_path(r, 296314321, 296314277))\n```\n\n```\nparsed_osm = parser.load_parse_osm(r\"osm/Beijing.osm\")\nm = road.extract_adj(parsed_osm)\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ChenZhongPu/osmRoad", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "osmRoad", "package_url": "https://pypi.org/project/osmRoad/", "platform": "", "project_url": "https://pypi.org/project/osmRoad/", "project_urls": { "Homepage": "https://github.com/ChenZhongPu/osmRoad" }, "release_url": "https://pypi.org/project/osmRoad/0.2/", "requires_dist": null, "requires_python": "", "summary": "Parse OSM Data", "version": "0.2" }, "last_serial": 5231378, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8d14b44404b4fc4ad62bf15a9ee9ffdf", "sha256": "772d375e49f3b401efb824a8f106907b3f5f4b5210c85a898da67106aacda2a7" }, "downloads": -1, "filename": "osmRoad-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8d14b44404b4fc4ad62bf15a9ee9ffdf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5676, "upload_time": "2018-07-28T08:19:39", "url": "https://files.pythonhosted.org/packages/03/81/c79644bafef0cb9c5531d69b23af7feb6111f3e880951e9864a9bdc9d3df/osmRoad-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "181445908e0ff8f6299c8f527b643991", "sha256": "8842398be32a304da69bc05a033a3c576f1c077a6578e87f41a92866e3e88102" }, "downloads": -1, "filename": "osmRoad-0.1.tar.gz", "has_sig": false, "md5_digest": "181445908e0ff8f6299c8f527b643991", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3520, "upload_time": "2018-07-28T08:19:40", "url": "https://files.pythonhosted.org/packages/65/fb/f9f89f8d0f587b935301d148283396a711216facb71abce58cd4c94c2c80/osmRoad-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "c22f032e8755595ff65d76428c752713", "sha256": "0a4f862211a7d6301cc27393e39737e7f054ec46cbd6a23490fd348e7bfd4dfc" }, "downloads": -1, "filename": "osmRoad-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c22f032e8755595ff65d76428c752713", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6324, "upload_time": "2019-05-06T08:32:30", "url": "https://files.pythonhosted.org/packages/f2/e0/d2b5ce7460702b651ed27e7fadef39f086bf98b56593013c92f514d97c77/osmRoad-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b1debe0ec37c8a2f0c64adcd57e6f694", "sha256": "1c6816cba89a6a830ec1e5adaa7776b3477b35977c51b7df4f9b2dc8cccfe456" }, "downloads": -1, "filename": "osmRoad-0.2.tar.gz", "has_sig": false, "md5_digest": "b1debe0ec37c8a2f0c64adcd57e6f694", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3517, "upload_time": "2019-05-06T08:32:31", "url": "https://files.pythonhosted.org/packages/c2/19/747f5c8a60fbf112a94eb4ca772b28d9724cb360287a4be1013485333b51/osmRoad-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c22f032e8755595ff65d76428c752713", "sha256": "0a4f862211a7d6301cc27393e39737e7f054ec46cbd6a23490fd348e7bfd4dfc" }, "downloads": -1, "filename": "osmRoad-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c22f032e8755595ff65d76428c752713", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6324, "upload_time": "2019-05-06T08:32:30", "url": "https://files.pythonhosted.org/packages/f2/e0/d2b5ce7460702b651ed27e7fadef39f086bf98b56593013c92f514d97c77/osmRoad-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b1debe0ec37c8a2f0c64adcd57e6f694", "sha256": "1c6816cba89a6a830ec1e5adaa7776b3477b35977c51b7df4f9b2dc8cccfe456" }, "downloads": -1, "filename": "osmRoad-0.2.tar.gz", "has_sig": false, "md5_digest": "b1debe0ec37c8a2f0c64adcd57e6f694", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3517, "upload_time": "2019-05-06T08:32:31", "url": "https://files.pythonhosted.org/packages/c2/19/747f5c8a60fbf112a94eb4ca772b28d9724cb360287a4be1013485333b51/osmRoad-0.2.tar.gz" } ] }