{ "info": { "author": "PhiBo (DinoTools), Lars Klitzke", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "Python Overpass Wrapper\n=======================\n\nA Python Wrapper to access the Overpass API.\n\nHave a look at the `documentation`_ to find additional information.\n\n.. image:: https://pypip.in/version/overpy/badge.svg\n :target: https://pypi.python.org/pypi/overpy/\n :alt: Latest Version\n\n.. image:: https://pypip.in/license/overpy/badge.svg\n :target: https://pypi.python.org/pypi/overpy/\n :alt: License\n\n.. image:: https://travis-ci.org/DinoTools/python-overpy.svg?branch=master\n :target: https://travis-ci.org/DinoTools/python-overpy\n\n.. image:: https://coveralls.io/repos/DinoTools/python-overpy/badge.png?branch=master\n :target: https://coveralls.io/r/DinoTools/python-overpy?branch=master\n\nFeatures\n--------\n\n* Query Overpass API\n* Parse JSON and XML response data\n* Additional helper functions\n\nInstall\n-------\n\n**Requirements:**\n\nSupported Python versions:\n\n* Python >= 3.4\n* PyPy and PyPy3\n\n**Install:**\n\n.. code-block:: console\n\n $ pip install overpy\n\nExamples\n--------\n\nAdditional examples can be found in the `documentation`_ and in the *examples* directory.\n\n.. code-block:: python\n\n import overpy\n\n api = overpy.Overpass()\n\n # fetch all ways and nodes\n result = api.query(\"\"\"\n way(50.746,7.154,50.748,7.157) [\"highway\"];\n (._;>;);\n out body;\n \"\"\")\n\n for way in result.ways:\n print(\"Name: %s\" % way.tags.get(\"name\", \"n/a\"))\n print(\" Highway: %s\" % way.tags.get(\"highway\", \"n/a\"))\n print(\" Nodes:\")\n for node in way.nodes:\n print(\" Lat: %f, Lon: %f\" % (node.lat, node.lon))\n\n\nHelper\n~~~~~~\n\nHelper methods are available to provide easy access to often used requests.\n\n.. code-block:: python\n\n import overpy.helper\n\n # 3600062594 is the OSM id of Chemnitz and is the bounding box for the request\n street = overpy.helper.get_street(\n \"Stra\u00dfe der Nationen\",\n \"3600062594\"\n )\n\n # this finds an intersection between Stra\u00dfe der Nationen and Carolastra\u00dfe in Chemnitz\n intersection = overpy.helper.get_intersection(\n \"Stra\u00dfe der Nationen\",\n \"Carolastra\u00dfe\",\n \"3600062594\"\n )\n\n\nLicense\n-------\n\nPublished under the MIT (see LICENSE for more information)\n\n.. _`documentation`: http://python-overpy.readthedocs.org/\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/DinoTools/python-overpy", "keywords": "OverPy Overpass OSM OpenStreetMap", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "overpy2", "package_url": "https://pypi.org/project/overpy2/", "platform": "", "project_url": "https://pypi.org/project/overpy2/", "project_urls": { "Homepage": "https://github.com/DinoTools/python-overpy" }, "release_url": "https://pypi.org/project/overpy2/0.4.2/", "requires_dist": null, "requires_python": "", "summary": "Python Wrapper to access the OpenStreepMap Overpass API", "version": "0.4.2" }, "last_serial": 5584649, "releases": { "0.4.2": [ { "comment_text": "", "digests": { "md5": "16f75f45fbb6f6dce788405099acae98", "sha256": "eea33ded42064f7d3560c8a5b647aa0b1749e8c058f49fb00c065ccdd9c9919e" }, "downloads": -1, "filename": "overpy2-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "16f75f45fbb6f6dce788405099acae98", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 50808, "upload_time": "2019-07-25T17:49:43", "url": "https://files.pythonhosted.org/packages/dc/4f/982eda292dd18c6588410e5cb63d118ab57bbdedc869e9daee32b5b36c1f/overpy2-0.4.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "16f75f45fbb6f6dce788405099acae98", "sha256": "eea33ded42064f7d3560c8a5b647aa0b1749e8c058f49fb00c065ccdd9c9919e" }, "downloads": -1, "filename": "overpy2-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "16f75f45fbb6f6dce788405099acae98", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 50808, "upload_time": "2019-07-25T17:49:43", "url": "https://files.pythonhosted.org/packages/dc/4f/982eda292dd18c6588410e5cb63d118ab57bbdedc869e9daee32b5b36c1f/overpy2-0.4.2-py3-none-any.whl" } ] }