All Projects → DinoTools → Python Overpy

DinoTools / Python Overpy

Licence: mit
Python Wrapper to access the Overpass API

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Python Overpy

Angular Diff Match Patch
An AngularJS wrapper for google-diff-match-patch
Stars: ✭ 135 (-10.6%)
Mutual labels:  wrapper
Youtube Music
🎵 A Mac app wrapper for music.youtube.com
Stars: ✭ 2,097 (+1288.74%)
Mutual labels:  wrapper
Telenav.ai
Telenav.AI competition public repository
Stars: ✭ 146 (-3.31%)
Mutual labels:  openstreetmap
Python Twitch Client
Python wrapper for Twitch API
Stars: ✭ 137 (-9.27%)
Mutual labels:  wrapper
Urbanaccess
A tool for GTFS transit and OSM pedestrian network accessibility analysis
Stars: ✭ 137 (-9.27%)
Mutual labels:  openstreetmap
Heed
A fully typed LMDB/MDBX wrapper with minimum overhead
Stars: ✭ 142 (-5.96%)
Mutual labels:  wrapper
Libfaketime
libfaketime modifies the system time for a single application
Stars: ✭ 1,932 (+1179.47%)
Mutual labels:  wrapper
Geo Heatmap
🗺️ Generate an interactive geo heatmap from your Google location data
Stars: ✭ 1,861 (+1132.45%)
Mutual labels:  openstreetmap
Ytdlrc
☁️ Downloads videos and metadata with youtube-dl and moves each file on completion to an rclone remote
Stars: ✭ 140 (-7.28%)
Mutual labels:  wrapper
Editor Layer Index
A unified layer index for OSM editors.
Stars: ✭ 144 (-4.64%)
Mutual labels:  openstreetmap
Mailjet Apiv3 Nodejs
[API v3] Official Mailjet API v3 NodeJS wrapper
Stars: ✭ 137 (-9.27%)
Mutual labels:  wrapper
Pacaptr
Pacman-like syntax wrapper for many package managers.
Stars: ✭ 138 (-8.61%)
Mutual labels:  wrapper
Coinbasepro Csharp
The unofficial .NET/C# client library for the Coinbase Pro/GDAX API
Stars: ✭ 143 (-5.3%)
Mutual labels:  wrapper
Nominatim
Open Source search based on OpenStreetMap data
Stars: ✭ 1,896 (+1155.63%)
Mutual labels:  openstreetmap
Streetcomplete
Easy to use OpenStreetMap editor for Android
Stars: ✭ 2,456 (+1526.49%)
Mutual labels:  openstreetmap
Mastodonkit
MastodonKit is a Swift Framework that wraps Mastodon's API
Stars: ✭ 134 (-11.26%)
Mutual labels:  wrapper
Robosat
Semantic segmentation on aerial and satellite imagery. Extracts features such as: buildings, parking lots, roads, water, clouds
Stars: ✭ 1,789 (+1084.77%)
Mutual labels:  openstreetmap
Vue Axios
A small wrapper for integrating axios to Vuejs
Stars: ✭ 1,887 (+1149.67%)
Mutual labels:  wrapper
Node Tileserver
A lightweight tileserver based on NodeJS for serving bitmap and vector tiles.
Stars: ✭ 148 (-1.99%)
Mutual labels:  openstreetmap
Gl
Header-only C++17 wrapper for OpenGL 4.6 Core Profile.
Stars: ✭ 144 (-4.64%)
Mutual labels:  wrapper

Python Overpass Wrapper

A Python Wrapper to access the Overpass API.

Have a look at the documentation_ to find additional information.

.. image:: https://img.shields.io/pypi/v/overpy.svg :target: https://pypi.python.org/pypi/overpy/ :alt: Latest Version

.. image:: https://img.shields.io/pypi/l/overpy.svg :target: https://pypi.python.org/pypi/overpy/ :alt: License

.. image:: https://travis-ci.org/DinoTools/python-overpy.svg?branch=master :target: https://travis-ci.org/DinoTools/python-overpy

.. image:: https://coveralls.io/repos/DinoTools/python-overpy/badge.png?branch=master :target: https://coveralls.io/r/DinoTools/python-overpy?branch=master

Features

  • Query Overpass API
  • Parse JSON and XML response data
  • Additional helper functions

Install

Requirements:

Supported Python versions:

  • Python 2.7
  • Python >= 3.2
  • PyPy and PyPy3

Install:

.. code-block:: console

$ pip install overpy

Examples

Additional examples can be found in the documentation_ and in the examples directory.

.. code-block:: python

import overpy

api = overpy.Overpass()

# fetch all ways and nodes
result = api.query("""
    way(50.746,7.154,50.748,7.157) ["highway"];
    (._;>;);
    out body;
    """)

for way in result.ways:
    print("Name: %s" % way.tags.get("name", "n/a"))
    print("  Highway: %s" % way.tags.get("highway", "n/a"))
    print("  Nodes:")
    for node in way.nodes:
        print("    Lat: %f, Lon: %f" % (node.lat, node.lon))

Helper


Helper methods are available to provide easy access to often used requests.

.. code-block:: python

    import overpy.helper

    # 3600062594 is the OSM id of Chemnitz and is the bounding box for the request
    street = overpy.helper.get_street(
        "Straße der Nationen",
        "3600062594"
    )

    # this finds an intersection between Straße der Nationen and Carolastraße in Chemnitz
    intersection = overpy.helper.get_intersection(
        "Straße der Nationen",
        "Carolastraße",
        "3600062594"
    )


License
-------

Published under the MIT (see LICENSE for more information)

.. _`documentation`: http://python-overpy.readthedocs.org/
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].