diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10feb68..49e384c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build osmapi on: pull_request: push: - branches: [master] + branches: [master, develop] jobs: build: runs-on: ubuntu-latest @@ -30,9 +30,3 @@ jobs: - name: Build the package run: ./build.sh - - - name: Test coverage - run: coveralls --service=github - if: ${{ matrix.python-version == '3.8' }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index eae3e2e..b733da0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ MANIFEST .coverage .tox .pycache/* +.pytest_cache/* diff --git a/CHANGELOG.md b/CHANGELOG.md index b94bff6..ac51ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] +## [2.0.1] - 2021-11-23 +### Added +- Add Makefile for all common tasks + +### Fixed +- Long description of osmapi (now using directly the README.md) + +### Changed +- Switch from nose to pytest +- Move docs to its own subdirectory + +### Removed +- Remove tox configuration and dependency + ## [2.0.0] - 2021-11-22 ### Added - Move from Travis CI to Github Actions @@ -281,7 +295,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - `Fixed` for any bug fixes. - `Security` to invite users to upgrade in case of vulnerabilities. -[Unreleased]: https://github.com/metaodi/osmapi/compare/v2.0.0...HEAD +[Unreleased]: https://github.com/metaodi/osmapi/compare/v2.0.1...HEAD +[2.0.1]: https://github.com/metaodi/osmapi/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/metaodi/osmapi/compare/v1.3.0...v2.0.0 [1.3.0]: https://github.com/metaodi/osmapi/compare/v1.2.2...v1.3.0 [1.2.2]: https://github.com/metaodi/osmapi/compare/v1.2.1...v1.2.2 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..45afef1 --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +.DEFAULT_GOAL := help +.PHONY: coverage deps help lint test docs + +coverage: ## Run tests with coverage + python -m coverage erase + python -m coverage run --include=osmapi/* -m pytest -ra + python -m coverage report -m + +deps: ## Install dependencies + python -m pip install --upgrade pip + python -m pip install -r requirements.txt + python -m pip install -r test-requirements.txt + +docs: ## Generate documentation + python -m pdoc -o docs osmapi + +lint: ## Linting of source code + python -m flake8 --statistics --show-source . + +test: ## Run tests + python -m pytest --cov=osmapi tests/ + +help: SHELL := /bin/bash +help: ## Show help message + @IFS=$$'\n' ; \ + help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/:/'`); \ + printf "%s\n\n" "Usage: make [task]"; \ + printf "%-20s %s\n" "task" "help" ; \ + printf "%-20s %s\n" "------" "----" ; \ + for help_line in $${help_lines[@]}; do \ + IFS=$$':' ; \ + help_split=($$help_line) ; \ + help_command=`echo $${help_split[0]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \ + help_info=`echo $${help_split[2]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \ + printf '\033[36m'; \ + printf "%-20s %s" $$help_command ; \ + printf '\033[0m'; \ + printf "%s\n" $$help_info; \ + done diff --git a/README.md b/README.md index 26aaaea..2e14054 100644 --- a/README.md +++ b/README.md @@ -85,11 +85,7 @@ After that, it is recommended to install the `flake8` pre-commit-hook: To run the tests use the following command: - nosetests --verbose - -By using tox you can even run the tests against different versions of python (3.7, 3.8, 3.9): - - tox + pytest ## Release diff --git a/build.sh b/build.sh index 5401995..845187c 100755 --- a/build.sh +++ b/build.sh @@ -9,13 +9,13 @@ function cleanup { trap "cleanup" EXIT # Check PEP-8 code style and McCabe complexity -flake8 --statistics --show-source . +make lint # run tests -nosetests --verbose --with-coverage +make test # generate the docs -pdoc -o . osmapi +make docs # setup a new virtualenv and try to install the lib virtualenv pyenv diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..9e9df24 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,228 @@ + + + + + + + Module List – pdoc 8.0.1 + + + + + + + + + + +
+ + pdoc logo + + +
+
+
+ + \ No newline at end of file diff --git a/docs/osmapi.html b/docs/osmapi.html new file mode 100644 index 0000000..2e78301 --- /dev/null +++ b/docs/osmapi.html @@ -0,0 +1,233 @@ + + + + + + + osmapi API documentation + + + + + + + + +
+
+

+osmapi

+ + +
+ View Source +
__version__ = '2.0.1'
+
+from .OsmApi import *  # noqa
+from .errors import *  # noqa
+
+ +
+ +
+
+ + \ No newline at end of file diff --git a/docs/osmapi/OsmApi.html b/docs/osmapi/OsmApi.html new file mode 100644 index 0000000..71f6d4d --- /dev/null +++ b/docs/osmapi/OsmApi.html @@ -0,0 +1,8697 @@ + + + + + + + osmapi.OsmApi API documentation + + + + + + + + +
+
+

+osmapi.OsmApi

+ +

The OsmApi module is a wrapper for the OpenStreetMap API. +As such it provides an easy access to the functionality of the API.

+ +

You can find this module on PyPI +or on GitHub.

+ +

Find all information about changes of the different versions of this module +in the CHANGELOG.

+ +

Notes:

+ +
    +
  • dictionary keys are _unicode_
  • +
  • changeset is _integer_
  • +
  • version is _integer_
  • +
  • tag is a _dictionary_
  • +
  • timestamp is _unicode_
  • +
  • user is _unicode_
  • +
  • uid is _integer_
  • +
  • node lat and lon are _floats_
  • +
  • way nd is list of _integers_
  • +
  • relation member is a _list of dictionaries_ like +{"role": "", "ref":123, "type": "node"}
  • +
+
+ +
+ View Source +
# -*- coding: utf-8 -*-
+
+"""
+The OsmApi module is a wrapper for the OpenStreetMap API.
+As such it provides an easy access to the functionality of the API.
+
+You can find this module [on PyPI](https://pypi.python.org/pypi/osmapi)
+or [on GitHub](https://github.com/metaodi/osmapi).
+
+Find all information about changes of the different versions of this module
+[in the CHANGELOG](https://github.com/metaodi/osmapi/blob/master/CHANGELOG.md).
+
+
+## Notes:
+
+* **dictionary keys** are _unicode_
+* **changeset** is _integer_
+* **version** is _integer_
+* **tag** is a _dictionary_
+* **timestamp** is _unicode_
+* **user** is _unicode_
+* **uid** is _integer_
+* node **lat** and **lon** are _floats_
+* way **nd** is list of _integers_
+* relation **member** is a _list of dictionaries_ like
+`{"role": "", "ref":123, "type": "node"}`
+
+"""
+
+import xml.dom.minidom
+import xml.parsers.expat
+import time
+import sys
+import urllib.parse
+import re
+import requests
+from datetime import datetime
+
+from osmapi import __version__
+from .errors import AlreadySubscribedApiError
+from .errors import ApiError
+from .errors import ChangesetAlreadyOpenError
+from .errors import ChangesetClosedApiError
+from .errors import ElementDeletedApiError
+from .errors import MaximumRetryLimitReachedError
+from .errors import NoChangesetOpenError
+from .errors import NotSubscribedApiError
+from .errors import NoteClosedApiError
+from .errors import OsmApiError
+from .errors import OsmTypeAlreadyExistsError
+from .errors import PreconditionFailedApiError
+from .errors import ResponseEmptyApiError
+from .errors import UsernamePasswordMissingError
+from .errors import VersionMismatchApiError
+from .errors import XmlResponseInvalidError
+
+
+class OsmApi:
+    """
+    Main class of osmapi, instanciate this class to use osmapi
+    """
+
+    MAX_RETRY_LIMIT = 5
+    """Maximum retries if a call to the remote API fails (default: 5)"""
+
+    def __init__(
+            self,
+            username=None,
+            password=None,
+            passwordfile=None,
+            appid="",
+            created_by="osmapi/%s" % __version__,
+            api="https://www.openstreetmap.org",
+            changesetauto=False,
+            changesetautotags={},
+            changesetautosize=500,
+            changesetautomulti=1,
+            debug=False):
+        """
+        Initialized the OsmApi object.
+
+        There are two different ways to authenticate a user.
+        Either `username` and `password` are supplied directly or the path
+        to a `passwordfile` is given, where on the first line username
+        and password must be colon-separated (<user>:<pass>).
+
+        To credit the application that supplies changes to OSM, an `appid`
+        can be provided.  This is a string identifying the application.
+        If this is omitted "osmapi" is used.
+
+        It is possible to configure the URL to connect to using the `api`
+        parameter.  By default this is the SSL version of the production API
+        of OpenStreetMap, for testing purposes, one might prefer the official
+        test instance at "api06.dev.openstreetmap.org" or any other valid
+        OSM-API. To use an encrypted connection (HTTPS) simply add 'https://'
+        in front of the hostname of the `api` parameter (e.g.
+        https://api.openstreetmap.com).
+
+        There are several options to control the changeset behaviour. By
+        default, a programmer has to take care to open and close a changeset
+        prior to make changes to OSM.
+        By setting `changesetauto` to `True`, osmapi automatically opens
+        changesets.
+        The `changesetautotags` parameter takes a `dict`, where each key/value
+        pair is applied as tags to the changeset.
+        The option `changesetautosize` defines the size of each
+        upload (default: 500) and `changesetautomulti` defines how many
+        uploads should be made before closing a changeset and opening a new
+        one (default: 1).
+
+        The `debug` parameter can be used to generate a more verbose output.
+        """
+
+        # debug
+        self._debug = debug
+
+        # Get username
+        if username:
+            self._username = username
+        elif passwordfile:
+            with open(passwordfile) as f:
+                pass_line = f.readline()
+            self._username = pass_line.split(":")[0].strip()
+
+        # Get password
+        if password:
+            self._password = password
+        elif passwordfile:
+            with open(passwordfile) as f:
+                for line in f:
+                    line = line.strip().split(":", 1)
+                    if line[0] == self._username:
+                        self._password = line[1]
+
+        # Changest informations
+        # auto create and close changesets
+        self._changesetauto = changesetauto
+        # tags for automatic created changesets
+        self._changesetautotags = changesetautotags
+        # change count for auto changeset
+        self._changesetautosize = changesetautosize
+        # change count for auto changeset
+        self._changesetautosize = changesetautosize
+        # close a changeset every # upload
+        self._changesetautomulti = changesetautomulti
+        self._changesetautocpt = 0
+        # data to upload for auto group
+        self._changesetautodata = []
+
+        # Get API
+        self._api = api.strip('/')
+
+        # Get created_by
+        if not appid:
+            self._created_by = created_by
+        else:
+            self._created_by = "%s (%s)" % (appid, created_by)
+
+        # Initialisation
+        self._CurrentChangesetId = 0
+
+        # Http connection
+        self._session = self._get_http_session()
+
+    def __del__(self):
+        self.close()
+
+        return None
+
+    def __enter__(self):
+        self._session = self._get_http_session()
+        return self
+
+    def __exit__(self, *args):
+        self.close()
+
+    def close(self):
+        try:
+            if self._changesetauto:
+                self._changesetautoflush(True)
+        except ResponseEmptyApiError:
+            pass
+
+        if self._session:
+            self._session.close()
+
+    ##################################################
+    # Capabilities                                   #
+    ##################################################
+
+    def Capabilities(self):
+        """
+        Returns the API capabilities as a dict:
+
+            #!python
+            {
+                'area': {
+                    'maximum': area in square degrees that can be queried,
+                },
+                'changesets': {
+                    'maximum_elements': number of elements per changeset,
+                },
+                'status': {
+                    'api': online|readonly|offline,
+                    'database': online|readonly|offline,
+                    'gpx': online|readonly|offline,
+                },
+                'timeout': {
+                    'seconds': timeout in seconds for API calls,
+                },
+                'tracepoints': {
+                    'per_page': maximum number of points in a GPX track,
+                },
+                'version': {
+                    'maximum': maximum version of API this server supports,
+                    'minimum': minimum version of API this server supports,
+                },
+                'waynodes': {
+                    'maximum': maximum number of nodes that a way may contain,
+                },
+            }
+
+        The capabilities can be used by a client to
+        gain insights of the server in use.
+        """
+        uri = "/api/capabilities"
+        data = self._get(uri)
+
+        data = self._OsmResponseToDom(data, tag="api", single=True)
+        result = {}
+        for elem in data.childNodes:
+            if elem.nodeType != elem.ELEMENT_NODE:
+                continue
+            result[elem.nodeName] = {}
+            for k, v in elem.attributes.items():
+                try:
+                    result[elem.nodeName][k] = float(v)
+                except Exception:
+                    result[elem.nodeName][k] = v
+        return result
+
+    ##################################################
+    # Node                                           #
+    ##################################################
+
+    def NodeGet(self, NodeId, NodeVersion=-1):
+        """
+        Returns node with `NodeId` as a dict:
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': {},
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'timestamp': timestamp of last change,
+                'visible': True|False
+            }
+
+        If `NodeVersion` is supplied, this specific version is returned,
+        otherwise the latest version is returned.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/node/%s" % (NodeId)
+        if NodeVersion != -1:
+            uri += "/%s" % (NodeVersion)
+        data = self._get(uri)
+        data = self._OsmResponseToDom(data, tag="node", single=True)
+        return self._DomParseNode(data)
+
+    def NodeCreate(self, NodeData):
+        """
+        Creates a node based on the supplied `NodeData` dict:
+
+            #!python
+            {
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': {},
+            }
+
+        Returns updated `NodeData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If the supplied information contain an existing node,
+        `OsmApi.OsmTypeAlreadyExistsError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("create", "node", NodeData)
+
+    def NodeUpdate(self, NodeData):
+        """
+        Updates node with the supplied `NodeData` dict:
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': {},
+                'version': version number of node,
+            }
+
+        Returns updated `NodeData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("modify", "node", NodeData)
+
+    def NodeDelete(self, NodeData):
+        """
+        Delete node with `NodeData`:
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'version': version number of node,
+            }
+
+        Returns updated `NodeData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+
+        If the requested element has already been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        return self._do("delete", "node", NodeData)
+
+    def NodeHistory(self, NodeId):
+        """
+        Returns dict with version as key:
+
+            #!python
+            {
+                '1': dict of NodeData,
+                '2': dict of NodeData,
+                ...
+            }
+
+        `NodeId` is the unique identifier of a node.
+        """
+        uri = "/api/0.6/node/%s/history" % NodeId
+        data = self._get(uri)
+        nodes = self._OsmResponseToDom(data, tag="node")
+        result = {}
+        for node in nodes:
+            data = self._DomParseNode(node)
+            result[data["version"]] = data
+        return result
+
+    def NodeWays(self, NodeId):
+        """
+        Returns a list of dicts of `WayData` containing node `NodeId`:
+
+            #!python
+            [
+                {
+                    'id': id of Way,
+                    'nd': [] list of NodeIds in this way
+                    'tag': {} dict of tags,
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `NodeId` is a unique identifier for a node.
+        """
+        uri = "/api/0.6/node/%d/ways" % NodeId
+        data = self._get(uri)
+        ways = self._OsmResponseToDom(data, tag="way", allow_empty=True)
+        result = []
+        for way in ways:
+            data = self._DomParseWay(way)
+            result.append(data)
+        return result
+
+    def NodeRelations(self, NodeId):
+        """
+        Returns a list of dicts of `RelationData` containing node `NodeId`:
+
+            #!python
+            [
+                {
+                    'id': id of Relation,
+                    'member': [
+                        {
+                            'ref': ID of referenced element,
+                            'role': optional description of role in relation
+                            'type': node|way|relation
+                        },
+                        {
+                            ...
+                        }
+                    ]
+                    'tag': {},
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `NodeId` is a unique identifier for a node.
+        """
+        uri = "/api/0.6/node/%d/relations" % NodeId
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation", allow_empty=True)
+        result = []
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result.append(data)
+        return result
+
+    def NodesGet(self, NodeIdList):
+        """
+        Returns dict with the id of the Node as a key
+        for each node in `NodeIdList`:
+
+            #!python
+            {
+                '1234': dict of NodeData,
+                '5678': dict of NodeData,
+                ...
+            }
+
+        `NodeIdList` is a list containing unique identifiers
+        for multiple nodes.
+        """
+        node_list = ",".join([str(x) for x in NodeIdList])
+        uri = "/api/0.6/nodes?nodes=%s" % node_list
+        data = self._get(uri)
+        nodes = self._OsmResponseToDom(data, tag="node")
+        result = {}
+        for node in nodes:
+            data = self._DomParseNode(node)
+            result[data["id"]] = data
+        return result
+
+    ##################################################
+    # Way                                            #
+    ##################################################
+
+    def WayGet(self, WayId, WayVersion=-1):
+        """
+        Returns way with `WayId` as a dict:
+
+            #!python
+            {
+                'id': id of way,
+                'tag': {} tags of this way,
+                'nd': [] list of nodes belonging to this way
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'timestamp': timestamp of last change,
+                'visible': True|False
+            }
+
+        If `WayVersion` is supplied, this specific version is returned,
+        otherwise the latest version is returned.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/way/%s" % (WayId)
+        if WayVersion != -1:
+            uri += "/%s" % (WayVersion)
+        data = self._get(uri)
+        way = self._OsmResponseToDom(data, tag="way", single=True)
+        return self._DomParseWay(way)
+
+    def WayCreate(self, WayData):
+        """
+        Creates a way based on the supplied `WayData` dict:
+
+            #!python
+            {
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+            }
+
+        Returns updated `WayData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the supplied information contain an existing node,
+        `OsmApi.OsmTypeAlreadyExistsError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("create", "way", WayData)
+
+    def WayUpdate(self, WayData):
+        """
+        Updates way with the supplied `WayData` dict:
+
+            #!python
+            {
+                'id': id of way,
+                'nd': [] list of nodes,
+                'tag': {},
+                'version': version number of way,
+            }
+
+        Returns updated `WayData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("modify", "way", WayData)
+
+    def WayDelete(self, WayData):
+        """
+        Delete way with `WayData`:
+
+            #!python
+            {
+                'id': id of way,
+                'nd': [] list of nodes,
+                'tag': dict of tags,
+                'version': version number of way,
+            }
+
+        Returns updated `WayData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+
+        If the requested element has already been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        return self._do("delete", "way", WayData)
+
+    def WayHistory(self, WayId):
+        """
+        Returns dict with version as key:
+
+            #!python
+            {
+                '1': dict of WayData,
+                '2': dict of WayData,
+                ...
+            }
+
+        `WayId` is the unique identifier of a way.
+        """
+        uri = "/api/0.6/way/%s/history" % (WayId)
+        data = self._get(uri)
+        ways = self._OsmResponseToDom(data, tag="way")
+        result = {}
+        for way in ways:
+            data = self._DomParseWay(way)
+            result[data["version"]] = data
+        return result
+
+    def WayRelations(self, WayId):
+        """
+        Returns a list of dicts of `RelationData` containing way `WayId`:
+
+            #!python
+            [
+                {
+                    'id': id of Relation,
+                    'member': [
+                        {
+                            'ref': ID of referenced element,
+                            'role': optional description of role in relation
+                            'type': node|way|relation
+                        },
+                        {
+                            ...
+                        }
+                    ]
+                    'tag': {} dict of tags,
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `WayId` is a unique identifier for a way.
+        """
+        uri = "/api/0.6/way/%d/relations" % WayId
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation", allow_empty=True)
+        result = []
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result.append(data)
+        return result
+
+    def WayFull(self, WayId):
+        """
+        Returns the full data for way `WayId` as list of dicts:
+
+            #!python
+            [
+                {
+                    'type': node|way|relation,
+                    'data': {} data dict for node|way|relation
+                },
+                { ... }
+            ]
+
+        The `WayId` is a unique identifier for a way.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/way/%s/full" % (WayId)
+        data = self._get(uri)
+        return self.ParseOsm(data)
+
+    def WaysGet(self, WayIdList):
+        """
+        Returns dict with the id of the way as a key for
+        each way in `WayIdList`:
+
+            #!python
+            {
+                '1234': dict of WayData,
+                '5678': dict of WayData,
+                ...
+            }
+
+        `WayIdList` is a list containing unique identifiers for multiple ways.
+        """
+        way_list = ",".join([str(x) for x in WayIdList])
+        uri = "/api/0.6/ways?ways=%s" % way_list
+        data = self._get(uri)
+        ways = self._OsmResponseToDom(data, tag="way")
+        result = {}
+        for way in ways:
+            data = self._DomParseWay(way)
+            result[data["id"]] = data
+        return result
+
+    ##################################################
+    # Relation                                       #
+    ##################################################
+
+    def RelationGet(self, RelationId, RelationVersion=-1):
+        """
+        Returns relation with `RelationId` as a dict:
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'timestamp': timestamp of last change,
+                'visible': True|False
+            }
+
+        If `RelationVersion` is supplied, this specific version is returned,
+        otherwise the latest version is returned.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/relation/%s" % (RelationId)
+        if RelationVersion != -1:
+            uri += "/%s" % (RelationVersion)
+        data = self._get(uri)
+        relation = self._OsmResponseToDom(data, tag="relation", single=True)
+        return self._DomParseRelation(relation)
+
+    def RelationCreate(self, RelationData):
+        """
+        Creates a relation based on the supplied `RelationData` dict:
+
+            #!python
+            {
+                'member': [] list of members,
+                'tag': {} dict of tags,
+            }
+
+        Returns updated `RelationData` (without timestamp):
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the supplied information contain an existing node,
+        `OsmApi.OsmTypeAlreadyExistsError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("create", "relation", RelationData)
+
+    def RelationUpdate(self, RelationData):
+        """
+        Updates relation with the supplied `RelationData` dict:
+
+            #!python
+            {
+                'id': id of relation,
+                'member': [] list of member dicts,
+                'tag': {},
+                'version': version number of relation,
+            }
+
+        Returns updated `RelationData` (without timestamp):
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("modify", "relation", RelationData)
+
+    def RelationDelete(self, RelationData):
+        """
+        Delete relation with `RelationData` dict:
+
+            #!python
+            {
+                'id': id of relation,
+                'member': [] list of member dicts,
+                'tag': {},
+                'version': version number of relation,
+            }
+
+        Returns updated `RelationData` (without timestamp):
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+
+        If the requested element has already been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        return self._do("delete", "relation", RelationData)
+
+    def RelationHistory(self, RelationId):
+        """
+        Returns dict with version as key:
+
+            #!python
+            {
+                '1': dict of RelationData,
+                '2': dict of RelationData,
+                ...
+            }
+
+        `RelationId` is the unique identifier of a relation.
+        """
+        uri = "/api/0.6/relation/%s/history" % (RelationId)
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation")
+        result = {}
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result[data["version"]] = data
+        return result
+
+    def RelationRelations(self, RelationId):
+        """
+        Returns a list of dicts of `RelationData`
+        containing relation `RelationId`:
+
+            #!python
+            [
+                {
+                    'id': id of Relation,
+                    'member': [
+                        {
+                            'ref': ID of referenced element,
+                            'role': optional description of role in relation
+                            'type': node|way|relation
+                        },
+                        {
+                            ...
+                        }
+                    ]
+                    'tag': {} dict of tags,
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `RelationId` is a unique identifier for a relation.
+        """
+        uri = "/api/0.6/relation/%d/relations" % RelationId
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation", allow_empty=True)
+        result = []
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result.append(data)
+        return result
+
+    def RelationFullRecur(self, RelationId):
+        """
+        Returns the full data (all levels) for relation
+        `RelationId` as list of dicts:
+
+            #!python
+            [
+                {
+                    'type': node|way|relation,
+                    'data': {} data dict for node|way|relation
+                },
+                { ... }
+            ]
+
+        The `RelationId` is a unique identifier for a way.
+
+        This function is useful for relations containing other relations.
+
+        If you don't need all levels, use `OsmApi.RelationFull`
+        instead, which return only 2 levels.
+
+        If any relation (on any level) has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        data = []
+        todo = [RelationId]
+        done = []
+        while todo:
+            rid = todo.pop(0)
+            done.append(rid)
+            temp = self.RelationFull(rid)
+            for item in temp:
+                if item["type"] != "relation":
+                    continue
+                if item["data"]["id"] in done:
+                    continue
+                todo.append(item["data"]["id"])
+            data += temp
+        return data
+
+    def RelationFull(self, RelationId):
+        """
+        Returns the full data (two levels) for relation
+        `RelationId` as list of dicts:
+
+            #!python
+            [
+                {
+                    'type': node|way|relation,
+                    'data': {} data dict for node|way|relation
+                },
+                { ... }
+            ]
+
+        The `RelationId` is a unique identifier for a way.
+
+        If you need all levels, use `OsmApi.RelationFullRecur`.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/relation/%s/full" % (RelationId)
+        data = self._get(uri)
+        return self.ParseOsm(data)
+
+    def RelationsGet(self, RelationIdList):
+        """
+        Returns dict with the id of the relation as a key
+        for each relation in `RelationIdList`:
+
+            #!python
+            {
+                '1234': dict of RelationData,
+                '5678': dict of RelationData,
+                ...
+            }
+
+        `RelationIdList` is a list containing unique identifiers
+        for multiple relations.
+        """
+        relation_list = ",".join([str(x) for x in RelationIdList])
+        uri = "/api/0.6/relations?relations=%s" % relation_list
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation")
+        result = {}
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result[data["id"]] = data
+        return result
+
+    ##################################################
+    # Changeset                                      #
+    ##################################################
+
+    def ChangesetGet(self, ChangesetId, include_discussion=False):
+        """
+        Returns changeset with `ChangesetId` as a dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'discussion': [] list of comment dict (-> `include_discussion`)
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+        `ChangesetId` is the unique identifier of a changeset.
+
+        If `include_discussion` is set to `True` the changeset discussion
+        will be available in the result.
+        """
+        path = "/api/0.6/changeset/%s" % (ChangesetId)
+        if (include_discussion):
+            path += "?include_discussion=true"
+        data = self._get(path)
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+    def ChangesetUpdate(self, ChangesetTags={}):
+        """
+        Updates current changeset with `ChangesetTags`.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        if not self._CurrentChangesetId:
+            raise NoChangesetOpenError("No changeset currently opened")
+        if "created_by" not in ChangesetTags:
+            ChangesetTags["created_by"] = self._created_by
+        try:
+            self._put(
+                "/api/0.6/changeset/%s" % (self._CurrentChangesetId),
+                self._XmlBuild("changeset", {"tag": ChangesetTags}),
+                return_value=False
+            )
+        except ApiError as e:
+            if e.status == 409:
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        return self._CurrentChangesetId
+
+    def ChangesetCreate(self, ChangesetTags={}):
+        """
+        Opens a changeset.
+
+        If `ChangesetTags` are given, this tags are applied (key/value).
+
+        Returns `ChangesetId`
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+        """
+        if self._CurrentChangesetId:
+            raise ChangesetAlreadyOpenError("Changeset already opened")
+        if "created_by" not in ChangesetTags:
+            ChangesetTags["created_by"] = self._created_by
+        result = self._put(
+            "/api/0.6/changeset/create",
+            self._XmlBuild("changeset", {"tag": ChangesetTags})
+        )
+        self._CurrentChangesetId = int(result)
+        return self._CurrentChangesetId
+
+    def ChangesetClose(self):
+        """
+        Closes current changeset.
+
+        Returns `ChangesetId`.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        if not self._CurrentChangesetId:
+            raise NoChangesetOpenError("No changeset currently opened")
+        try:
+            self._put(
+                "/api/0.6/changeset/%s/close" % (self._CurrentChangesetId),
+                "",
+                return_value=False
+            )
+            CurrentChangesetId = self._CurrentChangesetId
+            self._CurrentChangesetId = 0
+        except ApiError as e:
+            if e.status == 409:
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        return CurrentChangesetId
+
+    def ChangesetUpload(self, ChangesData):
+        """
+        Upload data with the `ChangesData` list of dicts:
+
+            #!python
+            {
+                type: node|way|relation,
+                action: create|delete|modify,
+                data: {}
+            }
+
+        Returns list with updated ids.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        data = ""
+        data += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+        data += "<osmChange version=\"0.6\" generator=\""
+        data += self._created_by + "\">\n"
+        for change in ChangesData:
+            data += "<" + change["action"] + ">\n"
+            change["data"]["changeset"] = self._CurrentChangesetId
+            data += self._XmlBuild(
+                change["type"],
+                change["data"],
+                False
+            ).decode("utf-8")
+            data += "</" + change["action"] + ">\n"
+        data += "</osmChange>"
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/upload" % (self._CurrentChangesetId),
+                data.encode("utf-8")
+            )
+        except ApiError as e:
+            if e.status == 409 and re.search(r"The changeset .* was closed at .*", e.payload):
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        try:
+            data = xml.dom.minidom.parseString(data)
+            data = data.getElementsByTagName("diffResult")[0]
+            data = [x for x in data.childNodes if x.nodeType == x.ELEMENT_NODE]
+        except (xml.parsers.expat.ExpatError, IndexError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        for i in range(len(ChangesData)):
+            if ChangesData[i]["action"] == "delete":
+                ChangesData[i]["data"].pop("version")
+            else:
+                new_id = int(data[i].getAttribute("new_id"))
+                ChangesData[i]["data"]["id"] = new_id
+                new_version = int(data[i].getAttribute("new_version"))
+                ChangesData[i]["data"]["version"] = new_version
+        return ChangesData
+
+    def ChangesetDownload(self, ChangesetId):
+        """
+        Download data from changeset `ChangesetId`.
+
+        Returns list of dict:
+
+            #!python
+            {
+                'type': node|way|relation,
+                'action': create|delete|modify,
+                'data': {}
+            }
+        """
+        uri = "/api/0.6/changeset/%s/download" % (ChangesetId)
+        data = self._get(uri)
+        return self.ParseOsc(data)
+
+    def ChangesetsGet(  # noqa
+            self,
+            min_lon=None,
+            min_lat=None,
+            max_lon=None,
+            max_lat=None,
+            userid=None,
+            username=None,
+            closed_after=None,
+            created_before=None,
+            only_open=False,
+            only_closed=False):
+        """
+        Returns a dict with the id of the changeset as key
+        matching all criteria:
+
+            #!python
+            {
+                '1234': dict of ChangesetData,
+                '5678': dict of ChangesetData,
+                ...
+            }
+
+        All parameters are optional.
+        """
+
+        uri = "/api/0.6/changesets"
+        params = {}
+        if min_lon or min_lat or max_lon or max_lat:
+            params["bbox"] = ",".join(
+                [
+                    str(min_lon),
+                    str(min_lat),
+                    str(max_lon),
+                    str(max_lat)
+                ]
+            )
+        if userid:
+            params["user"] = userid
+        if username:
+            params["display_name"] = username
+        if closed_after and not created_before:
+            params["time"] = closed_after
+        if created_before:
+            if not closed_after:
+                closed_after = "1970-01-01T00:00:00Z"
+            params["time"] = "%s,%s" % (closed_after, created_before)
+        if only_open:
+            params["open"] = 1
+        if only_closed:
+            params["closed"] = 1
+
+        if params:
+            uri += "?" + urllib.parse.urlencode(params)
+
+        data = self._get(uri)
+        changesets = self._OsmResponseToDom(data, tag="changeset")
+        result = {}
+        for curChangeset in changesets:
+            tmpCS = self._DomParseChangeset(curChangeset)
+            result[tmpCS["id"]] = tmpCS
+        return result
+
+    def ChangesetComment(self, ChangesetId, comment):
+        """
+        Adds a comment to the changeset `ChangesetId`
+
+        `comment` should be a string.
+
+        Returns the updated `ChangesetData` dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        params = urllib.parse.urlencode({'text': comment})
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/comment" % (ChangesetId),
+                params
+            )
+        except ApiError as e:
+            if e.status == 409:
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+    def ChangesetSubscribe(self, ChangesetId):
+        """
+        Subcribe to the changeset discussion of changeset `ChangesetId`.
+
+        The user will be informed about new comments (i.e. receive an email).
+
+        Returns the updated `ChangesetData` dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+        """
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/subscribe" % (ChangesetId),
+                None
+            )
+        except ApiError as e:
+            if e.status == 409:
+                raise AlreadySubscribedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+    def ChangesetUnsubscribe(self, ChangesetId):
+        """
+        Subcribe to the changeset discussion of changeset `ChangesetId`.
+
+        The user will be informed about new comments (i.e. receive an email).
+
+        Returns the updated `ChangesetData` dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+        """
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/unsubscribe" % (ChangesetId),
+                None
+            )
+        except ApiError as e:
+            if e.status == 404:
+                raise NotSubscribedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+    ##################################################
+    # Notes                                          #
+    ##################################################
+
+    def NotesGet(
+            self,
+            min_lon,
+            min_lat,
+            max_lon,
+            max_lat,
+            limit=100,
+            closed=7):
+        """
+        Returns a list of dicts of notes in the specified bounding box:
+
+            #!python
+            [
+                {
+                    'id': integer,
+                    'action': opened|commented|closed,
+                    'status': open|closed
+                    'date_created': creation date
+                    'date_closed': closing data|None
+                    'uid': User ID|None
+                    'user': User name|None
+                    'comments': {}
+                },
+                { ... }
+            ]
+
+        The limit parameter defines how many results should be returned.
+
+        closed specifies the number of days a bug needs to be closed
+        to no longer be returned.
+        The value 0 means only open bugs are returned,
+        -1 means all bugs are returned.
+
+        All parameters are optional.
+        """
+        uri = (
+            "/api/0.6/notes?bbox=%f,%f,%f,%f&limit=%d&closed=%d"
+            % (min_lon, min_lat, max_lon, max_lat, limit, closed)
+        )
+        data = self._get(uri)
+        return self.ParseNotes(data)
+
+    def NoteGet(self, id):
+        """
+        Returns a note as dict:
+
+            #!python
+            {
+                'id': integer,
+                'action': opened|commented|closed,
+                'status': open|closed
+                'date_created': creation date
+                'date_closed': closing data|None
+                'uid': User ID|None
+                'user': User name|None
+                'comments': {}
+            }
+
+        `id` is the unique identifier of the note.
+        """
+        uri = "/api/0.6/notes/%s" % (id)
+        data = self._get(uri)
+        noteElement = self._OsmResponseToDom(data, tag="note", single=True)
+        return self._DomParseNote(noteElement)
+
+    def NoteCreate(self, NoteData):
+        """
+        Creates a note.
+
+        Returns updated NoteData (without timestamp).
+        """
+        uri = "/api/0.6/notes"
+        uri += "?" + urllib.parse.urlencode(NoteData)
+        return self._NoteAction(uri)
+
+    def NoteComment(self, NoteId, comment):
+        """
+        Adds a new comment to a note.
+
+        Returns the updated note.
+        """
+        path = "/api/0.6/notes/%s/comment" % NoteId
+        return self._NoteAction(path, comment)
+
+    def NoteClose(self, NoteId, comment):
+        """
+        Closes a note.
+
+        Returns the updated note.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+        """
+        path = "/api/0.6/notes/%s/close" % NoteId
+        return self._NoteAction(path, comment, optionalAuth=False)
+
+    def NoteReopen(self, NoteId, comment):
+        """
+        Reopens a note.
+
+        Returns the updated note.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        path = "/api/0.6/notes/%s/reopen" % NoteId
+        return self._NoteAction(path, comment, optionalAuth=False)
+
+    def NotesSearch(self, query, limit=100, closed=7):
+        """
+        Returns a list of dicts of notes that match the given search query.
+
+        The limit parameter defines how many results should be returned.
+
+        closed specifies the number of days a bug needs to be closed
+        to no longer be returned.
+        The value 0 means only open bugs are returned,
+        -1 means all bugs are returned.
+        """
+        uri = "/api/0.6/notes/search"
+        params = {}
+        params['q'] = query
+        params['limit'] = limit
+        params['closed'] = closed
+        uri += "?" + urllib.parse.urlencode(params)
+        data = self._get(uri)
+
+        return self.ParseNotes(data)
+
+    def _NoteAction(self, path, comment=None, optionalAuth=True):
+        """
+        Performs an action on a Note with a comment
+
+        Return the updated note
+        """
+        uri = path
+        if comment is not None:
+            params = {}
+            params['text'] = comment
+            uri += "?" + urllib.parse.urlencode(params)
+        try:
+            result = self._post(uri, None, optionalAuth=optionalAuth)
+        except ApiError as e:
+            if e.status == 404:
+                raise NoteClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+
+        # parse the result
+        noteElement = self._OsmResponseToDom(result, tag="note", single=True)
+        return self._DomParseNote(noteElement)
+
+    ##################################################
+    # Other                                          #
+    ##################################################
+
+    def Map(self, min_lon, min_lat, max_lon, max_lat):
+        """
+        Download data in bounding box.
+
+        Returns list of dict:
+
+            #!python
+            {
+                type: node|way|relation,
+                data: {}
+            }
+        """
+        uri = (
+            "/api/0.6/map?bbox=%f,%f,%f,%f"
+            % (min_lon, min_lat, max_lon, max_lat)
+        )
+        data = self._get(uri)
+        return self.ParseOsm(data)
+
+    ##################################################
+    # Data parser                                    #
+    ##################################################
+
+    def ParseOsm(self, data):
+        """
+        Parse osm data.
+
+        Returns list of dict:
+
+            #!python
+            {
+                type: node|way|relation,
+                data: {}
+            }
+        """
+        try:
+            data = xml.dom.minidom.parseString(data)
+            data = data.getElementsByTagName("osm")[0]
+        except (xml.parsers.expat.ExpatError, IndexError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        result = []
+        for elem in data.childNodes:
+            if elem.nodeName == "node":
+                result.append({
+                    "type": elem.nodeName,
+                    "data": self._DomParseNode(elem)
+                })
+            elif elem.nodeName == "way":
+                result.append({
+                    "type": elem.nodeName,
+                    "data": self._DomParseWay(elem)
+                })
+            elif elem.nodeName == "relation":
+                result.append({
+                    "type": elem.nodeName,
+                    "data": self._DomParseRelation(elem)
+                })
+        return result
+
+    def ParseOsc(self, data):
+        """
+        Parse osc data.
+
+        Returns list of dict:
+
+            #!python
+            {
+                type: node|way|relation,
+                action: create|delete|modify,
+                data: {}
+            }
+        """
+        try:
+            data = xml.dom.minidom.parseString(data)
+            data = data.getElementsByTagName("osmChange")[0]
+        except (xml.parsers.expat.ExpatError, IndexError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        result = []
+        for action in data.childNodes:
+            if action.nodeName == "#text":
+                continue
+            for elem in action.childNodes:
+                if elem.nodeName == "node":
+                    result.append({
+                        "action": action.nodeName,
+                        "type": elem.nodeName,
+                        "data": self._DomParseNode(elem)
+                    })
+                elif elem.nodeName == "way":
+                    result.append({
+                        "action": action.nodeName,
+                        "type": elem.nodeName,
+                        "data": self._DomParseWay(elem)
+                    })
+                elif elem.nodeName == "relation":
+                    result.append({
+                        "action": action.nodeName,
+                        "type": elem.nodeName,
+                        "data": self._DomParseRelation(elem)
+                    })
+        return result
+
+    def ParseNotes(self, data):
+        """
+        Parse notes data.
+
+        Returns a list of dict:
+
+            #!python
+            [
+                {
+                    'id': integer,
+                    'action': opened|commented|closed,
+                    'status': open|closed
+                    'date_created': creation date
+                    'date_closed': closing data|None
+                    'uid': User ID|None
+                    'user': User name|None
+                    'comments': {}
+                },
+                { ... }
+            ]
+        """
+        noteElements = self._OsmResponseToDom(data, tag="note")
+        result = []
+        for noteElement in noteElements:
+            note = self._DomParseNote(noteElement)
+            result.append(note)
+        return result
+
+    ##################################################
+    # Internal http function                         #
+    ##################################################
+
+    def _do(self, action, OsmType, OsmData):
+        if self._changesetauto:
+            self._changesetautodata.append({
+                "action": action,
+                "type": OsmType,
+                "data": OsmData
+            })
+            self._changesetautoflush()
+            return None
+        else:
+            return self._do_manu(action, OsmType, OsmData)
+
+    def _do_manu(self, action, OsmType, OsmData):  # noqa
+        if not self._CurrentChangesetId:
+            raise NoChangesetOpenError(
+                "You need to open a changeset before uploading data"
+            )
+        if "timestamp" in OsmData:
+            OsmData.pop("timestamp")
+        OsmData["changeset"] = self._CurrentChangesetId
+        if action == "create":
+            if OsmData.get("id", -1) > 0:
+                raise OsmTypeAlreadyExistsError(
+                    "This %s already exists" % OsmType
+                )
+            try:
+                result = self._put(
+                    "/api/0.6/%s/create" % OsmType,
+                    self._XmlBuild(OsmType, OsmData)
+                )
+            except ApiError as e:
+                if e.status == 409 and re.search(r"The changeset .* was closed at .*", e.payload):
+                    raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+                elif e.status == 409:
+                    raise VersionMismatchApiError(e.status, e.reason, e.payload)
+                elif e.status == 412:
+                    raise PreconditionFailedApiError(e.status, e.reason, e.payload)
+                else:
+                    raise
+            OsmData["id"] = int(result.strip())
+            OsmData["version"] = 1
+            return OsmData
+        elif action == "modify":
+            try:
+                result = self._put(
+                    "/api/0.6/%s/%s" % (OsmType, OsmData["id"]),
+                    self._XmlBuild(OsmType, OsmData)
+                )
+            except ApiError as e:
+                print(e.reason)
+                if e.status == 409 and re.search(r"The changeset .* was closed at .*", e.payload):
+                    raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+                elif e.status == 409:
+                    raise VersionMismatchApiError(e.status, e.reason, e.payload)
+                elif e.status == 412:
+                    raise PreconditionFailedApiError(e.status, e.reason, e.payload)
+                else:
+                    raise
+            OsmData["version"] = int(result.strip())
+            return OsmData
+        elif action == "delete":
+            try:
+                result = self._delete(
+                    "/api/0.6/%s/%s" % (OsmType, OsmData["id"]),
+                    self._XmlBuild(OsmType, OsmData)
+                )
+            except ApiError as e:
+                if e.status == 409 and re.search(r"The changeset .* was closed at .*", e.payload):
+                    raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+                elif e.status == 409:
+                    raise VersionMismatchApiError(e.status, e.reason, e.payload)
+                elif e.status == 412:
+                    raise PreconditionFailedApiError(e.status, e.reason, e.payload)
+                else:
+                    raise
+            OsmData["version"] = int(result.strip())
+            OsmData["visible"] = False
+            return OsmData
+
+    def flush(self):
+        """
+        Force the changes to be uploaded to OSM and the changeset to be closed
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+        """
+        return self._changesetautoflush(True)
+
+    def _changesetautoflush(self, force=False):
+        autosize = self._changesetautosize
+        while ((len(self._changesetautodata) >= autosize) or
+                (force and self._changesetautodata)):
+            if self._changesetautocpt == 0:
+                self.ChangesetCreate(self._changesetautotags)
+            self.ChangesetUpload(
+                self._changesetautodata[:autosize]
+            )
+            self._changesetautodata = self._changesetautodata[autosize:]
+            self._changesetautocpt += 1
+            if self._changesetautocpt == self._changesetautomulti:
+                self.ChangesetClose()
+                self._changesetautocpt = 0
+        if self._changesetautocpt and force:
+            self.ChangesetClose()
+            self._changesetautocpt = 0
+        return None
+
+    def _http_request(self, method, path, auth, send, return_value=True):  # noqa
+        """
+        Returns the response generated by an HTTP request.
+
+        `method` is a HTTP method to be executed
+        with the request data. For example: 'GET' or 'POST'.
+        `path` is the path to the requested resource relative to the
+        base API address stored in self._api. Should start with a
+        slash character to separate the URL.
+        `auth` is a boolean indicating whether authentication should
+        be preformed on this request.
+        `send` contains additional data that might be sent in a
+        request.
+        `return_value` indicates wheter this request should return
+        any data or not.
+
+        If the username or password is missing,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+
+        If the response status code indicates an error,
+        `OsmApi.ApiError` is raised.
+        """
+        if self._debug:
+            error_msg = (
+                "%s %s %s"
+                % (time.strftime("%Y-%m-%d %H:%M:%S"), method, path)
+            )
+            print(error_msg, file=sys.stderr)
+
+        # Add API base URL to path
+        path = self._api + path
+
+        user_pass = None
+        if auth:
+            try:
+                user_pass = (self._username, self._password)
+            except AttributeError:
+                raise UsernamePasswordMissingError("Username/Password missing")
+
+        response = self._session.request(method, path, auth=user_pass,
+                                         data=send)
+        if response.status_code != 200:
+            payload = response.content.strip()
+            if response.status_code == 410:
+                raise ElementDeletedApiError(
+                    response.status_code,
+                    response.reason,
+                    payload
+                )
+            raise ApiError(response.status_code, response.reason, payload)
+        if return_value and not response.content:
+            raise ResponseEmptyApiError(
+                response.status_code,
+                response.reason,
+                ''
+            )
+
+        if self._debug:
+            error_msg = (
+                "%s %s %s"
+                % (time.strftime("%Y-%m-%d %H:%M:%S"), method, path)
+            )
+            print(error_msg, file=sys.stderr)
+        return response.content
+
+    def _http(self, cmd, path, auth, send, return_value=True):  # noqa
+        i = 0
+        while True:
+            i += 1
+            try:
+                return self._http_request(
+                    cmd,
+                    path,
+                    auth,
+                    send,
+                    return_value=return_value
+                )
+            except ApiError as e:
+                if e.status >= 500:
+                    if i == self.MAX_RETRY_LIMIT:
+                        raise
+                    if i != 1:
+                        self._sleep()
+                    self._session = self._get_http_session()
+                else:
+                    raise
+            except Exception as e:
+                print(e)
+                if i == self.MAX_RETRY_LIMIT:
+                    if isinstance(e, OsmApiError):
+                        raise
+                    raise MaximumRetryLimitReachedError(
+                        "Give up after %s retries" % i
+                    )
+                if i != 1:
+                    self._sleep()
+                self._session = self._get_http_session()
+
+    def _get_http_session(self):
+        """
+        Creates a requests session for connection pooling.
+        """
+        session = requests.Session()
+        session.headers.update({
+            'user-agent': self._created_by
+        })
+        return session
+
+    def _sleep(self):
+        time.sleep(5)
+
+    def _get(self, path):
+        return self._http('GET', path, False, None)
+
+    def _put(self, path, data, return_value=True):
+        return self._http('PUT', path, True, data, return_value=return_value)
+
+    def _post(self, path, data, optionalAuth=False):
+        auth = True
+        # the Notes API allows certain POSTs by non-authenticated users
+        if optionalAuth:
+            auth = hasattr(self, '_username')
+        return self._http('POST', path, auth, data)
+
+    def _delete(self, path, data):
+        return self._http('DELETE', path, True, data)
+
+    ##################################################
+    # Internal dom function                          #
+    ##################################################
+
+    def _OsmResponseToDom(self, response, tag, single=False, allow_empty=False):
+        """
+        Returns the (sub-) DOM parsed from an OSM response
+        """
+        try:
+            dom = xml.dom.minidom.parseString(response)
+            osm_dom = dom.getElementsByTagName("osm")[0]
+            all_data = osm_dom.getElementsByTagName(tag)
+            first_element = all_data[0]
+        except (IndexError) as e:
+            if allow_empty:
+                return []
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+        except (xml.parsers.expat.ExpatError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        if single:
+            return first_element
+        return all_data
+
+    def _DomGetAttributes(self, DomElement):  # noqa
+        """
+        Returns a formated dictionnary of attributes of a DomElement.
+        """
+        result = {}
+        for k, v in DomElement.attributes.items():
+            if k == "uid":
+                v = int(v)
+            elif k == "changeset":
+                v = int(v)
+            elif k == "version":
+                v = int(v)
+            elif k == "id":
+                v = int(v)
+            elif k == "lat":
+                v = float(v)
+            elif k == "lon":
+                v = float(v)
+            elif k == "open":
+                v = (v == "true")
+            elif k == "visible":
+                v = (v == "true")
+            elif k == "ref":
+                v = int(v)
+            elif k == "comments_count":
+                v = int(v)
+            elif k == "timestamp":
+                v = self._ParseDate(v)
+            elif k == "created_at":
+                v = self._ParseDate(v)
+            elif k == "closed_at":
+                v = self._ParseDate(v)
+            elif k == "date":
+                v = self._ParseDate(v)
+            result[k] = v
+        return result
+
+    def _DomGetTag(self, DomElement):
+        """
+        Returns the dictionnary of tags of a DomElement.
+        """
+        result = {}
+        for t in DomElement.getElementsByTagName("tag"):
+            k = t.attributes["k"].value
+            v = t.attributes["v"].value
+            result[k] = v
+        return result
+
+    def _DomGetNd(self, DomElement):
+        """
+        Returns the list of nodes of a DomElement.
+        """
+        result = []
+        for t in DomElement.getElementsByTagName("nd"):
+            result.append(int(int(t.attributes["ref"].value)))
+        return result
+
+    def _DomGetDiscussion(self, DomElement):
+        """
+        Returns the dictionnary of comments of a DomElement.
+        """
+        result = []
+        try:
+            discussion = DomElement.getElementsByTagName("discussion")[0]
+            for t in discussion.getElementsByTagName("comment"):
+                comment = self._DomGetAttributes(t)
+                comment['text'] = self._GetXmlValue(t, "text")
+                result.append(comment)
+        except IndexError:
+            pass
+        return result
+
+    def _DomGetComments(self, DomElement):
+        """
+        Returns the list of comments of a DomElement.
+        """
+        result = []
+        for t in DomElement.getElementsByTagName("comment"):
+            comment = {}
+            comment['date'] = self._ParseDate(self._GetXmlValue(t, "date"))
+            comment['action'] = self._GetXmlValue(t, "action")
+            comment['text'] = self._GetXmlValue(t, "text")
+            comment['html'] = self._GetXmlValue(t, "html")
+            comment['uid'] = self._GetXmlValue(t, "uid")
+            comment['user'] = self._GetXmlValue(t, "user")
+            result.append(comment)
+        return result
+
+    def _DomGetMember(self, DomElement):
+        """
+        Returns a list of relation members.
+        """
+        result = []
+        for m in DomElement.getElementsByTagName("member"):
+            result.append(self._DomGetAttributes(m))
+        return result
+
+    def _DomParseNode(self, DomElement):
+        """
+        Returns NodeData for the node.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["tag"] = self._DomGetTag(DomElement)
+        return result
+
+    def _DomParseWay(self, DomElement):
+        """
+        Returns WayData for the way.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["tag"] = self._DomGetTag(DomElement)
+        result["nd"] = self._DomGetNd(DomElement)
+        return result
+
+    def _DomParseRelation(self, DomElement):
+        """
+        Returns RelationData for the relation.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["tag"] = self._DomGetTag(DomElement)
+        result["member"] = self._DomGetMember(DomElement)
+        return result
+
+    def _DomParseChangeset(self, DomElement):
+        """
+        Returns ChangesetData for the changeset.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["tag"] = self._DomGetTag(DomElement)
+        result["discussion"] = self._DomGetDiscussion(DomElement)
+
+        return result
+
+    def _DomParseNote(self, DomElement):
+        """
+        Returns NoteData for the note.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["id"] = self._GetXmlValue(DomElement, "id")
+        result["status"] = self._GetXmlValue(DomElement, "status")
+
+        result["date_created"] = self._ParseDate(
+            self._GetXmlValue(DomElement, "date_created")
+        )
+        result["date_closed"] = self._ParseDate(
+            self._GetXmlValue(DomElement, "date_closed")
+        )
+        result["comments"] = self._DomGetComments(DomElement)
+
+        return result
+
+    def _ParseDate(self, DateString):
+        result = DateString
+        try:
+            result = datetime.strptime(DateString, "%Y-%m-%d %H:%M:%S UTC")
+        except Exception:
+            try:
+                result = datetime.strptime(DateString, "%Y-%m-%dT%H:%M:%SZ")
+            except Exception:
+                pass
+
+        return result
+
+    ##################################################
+    # Internal xml builder                           #
+    ##################################################
+
+    def _XmlBuild(self, ElementType, ElementData, WithHeaders=True):  # noqa
+
+        xml = ""
+        if WithHeaders:
+            xml += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+            xml += "<osm version=\"0.6\" generator=\""
+            xml += self._created_by + "\">\n"
+
+        # <element attr="val">
+        xml += "  <" + ElementType
+        if "id" in ElementData:
+            xml += " id=\"" + str(ElementData["id"]) + "\""
+        if "lat" in ElementData:
+            xml += " lat=\"" + str(ElementData["lat"]) + "\""
+        if "lon" in ElementData:
+            xml += " lon=\"" + str(ElementData["lon"]) + "\""
+        if "version" in ElementData:
+            xml += " version=\"" + str(ElementData["version"]) + "\""
+        visible_str = str(ElementData.get("visible", True)).lower()
+        xml += " visible=\"" + visible_str + "\""
+        if ElementType in ["node", "way", "relation"]:
+            xml += " changeset=\"" + str(self._CurrentChangesetId) + "\""
+        xml += ">\n"
+
+        # <tag... />
+        for k, v in ElementData.get("tag", {}).items():
+            xml += "    <tag k=\"" + self._XmlEncode(k)
+            xml += "\" v=\"" + self._XmlEncode(v) + "\"/>\n"
+
+        # <member... />
+        for member in ElementData.get("member", []):
+            xml += "    <member type=\"" + member["type"]
+            xml += "\" ref=\"" + str(member["ref"])
+            xml += "\" role=\"" + self._XmlEncode(member["role"])
+            xml += "\"/>\n"
+
+        # <nd... />
+        for ref in ElementData.get("nd", []):
+            xml += "    <nd ref=\"" + str(ref) + "\"/>\n"
+
+        # </element>
+        xml += "  </" + ElementType + ">\n"
+
+        if WithHeaders:
+            xml += "</osm>\n"
+
+        return xml.encode("utf8")
+
+    def _XmlEncode(self, text):
+        return (
+            text
+            .replace("&", "&amp;")
+            .replace("\"", "&quot;")
+            .replace("<", "&lt;")
+            .replace(">", "&gt;")
+        )
+
+    def _GetXmlValue(self, DomElement, tag):
+        try:
+            elem = DomElement.getElementsByTagName(tag)[0]
+            return elem.firstChild.nodeValue
+        except Exception:
+            return None
+
+ +
+ +
+
+
+ #   + + + class + OsmApi: +
+ +
+ View Source +
class OsmApi:
+    """
+    Main class of osmapi, instanciate this class to use osmapi
+    """
+
+    MAX_RETRY_LIMIT = 5
+    """Maximum retries if a call to the remote API fails (default: 5)"""
+
+    def __init__(
+            self,
+            username=None,
+            password=None,
+            passwordfile=None,
+            appid="",
+            created_by="osmapi/%s" % __version__,
+            api="https://www.openstreetmap.org",
+            changesetauto=False,
+            changesetautotags={},
+            changesetautosize=500,
+            changesetautomulti=1,
+            debug=False):
+        """
+        Initialized the OsmApi object.
+
+        There are two different ways to authenticate a user.
+        Either `username` and `password` are supplied directly or the path
+        to a `passwordfile` is given, where on the first line username
+        and password must be colon-separated (<user>:<pass>).
+
+        To credit the application that supplies changes to OSM, an `appid`
+        can be provided.  This is a string identifying the application.
+        If this is omitted "osmapi" is used.
+
+        It is possible to configure the URL to connect to using the `api`
+        parameter.  By default this is the SSL version of the production API
+        of OpenStreetMap, for testing purposes, one might prefer the official
+        test instance at "api06.dev.openstreetmap.org" or any other valid
+        OSM-API. To use an encrypted connection (HTTPS) simply add 'https://'
+        in front of the hostname of the `api` parameter (e.g.
+        https://api.openstreetmap.com).
+
+        There are several options to control the changeset behaviour. By
+        default, a programmer has to take care to open and close a changeset
+        prior to make changes to OSM.
+        By setting `changesetauto` to `True`, osmapi automatically opens
+        changesets.
+        The `changesetautotags` parameter takes a `dict`, where each key/value
+        pair is applied as tags to the changeset.
+        The option `changesetautosize` defines the size of each
+        upload (default: 500) and `changesetautomulti` defines how many
+        uploads should be made before closing a changeset and opening a new
+        one (default: 1).
+
+        The `debug` parameter can be used to generate a more verbose output.
+        """
+
+        # debug
+        self._debug = debug
+
+        # Get username
+        if username:
+            self._username = username
+        elif passwordfile:
+            with open(passwordfile) as f:
+                pass_line = f.readline()
+            self._username = pass_line.split(":")[0].strip()
+
+        # Get password
+        if password:
+            self._password = password
+        elif passwordfile:
+            with open(passwordfile) as f:
+                for line in f:
+                    line = line.strip().split(":", 1)
+                    if line[0] == self._username:
+                        self._password = line[1]
+
+        # Changest informations
+        # auto create and close changesets
+        self._changesetauto = changesetauto
+        # tags for automatic created changesets
+        self._changesetautotags = changesetautotags
+        # change count for auto changeset
+        self._changesetautosize = changesetautosize
+        # change count for auto changeset
+        self._changesetautosize = changesetautosize
+        # close a changeset every # upload
+        self._changesetautomulti = changesetautomulti
+        self._changesetautocpt = 0
+        # data to upload for auto group
+        self._changesetautodata = []
+
+        # Get API
+        self._api = api.strip('/')
+
+        # Get created_by
+        if not appid:
+            self._created_by = created_by
+        else:
+            self._created_by = "%s (%s)" % (appid, created_by)
+
+        # Initialisation
+        self._CurrentChangesetId = 0
+
+        # Http connection
+        self._session = self._get_http_session()
+
+    def __del__(self):
+        self.close()
+
+        return None
+
+    def __enter__(self):
+        self._session = self._get_http_session()
+        return self
+
+    def __exit__(self, *args):
+        self.close()
+
+    def close(self):
+        try:
+            if self._changesetauto:
+                self._changesetautoflush(True)
+        except ResponseEmptyApiError:
+            pass
+
+        if self._session:
+            self._session.close()
+
+    ##################################################
+    # Capabilities                                   #
+    ##################################################
+
+    def Capabilities(self):
+        """
+        Returns the API capabilities as a dict:
+
+            #!python
+            {
+                'area': {
+                    'maximum': area in square degrees that can be queried,
+                },
+                'changesets': {
+                    'maximum_elements': number of elements per changeset,
+                },
+                'status': {
+                    'api': online|readonly|offline,
+                    'database': online|readonly|offline,
+                    'gpx': online|readonly|offline,
+                },
+                'timeout': {
+                    'seconds': timeout in seconds for API calls,
+                },
+                'tracepoints': {
+                    'per_page': maximum number of points in a GPX track,
+                },
+                'version': {
+                    'maximum': maximum version of API this server supports,
+                    'minimum': minimum version of API this server supports,
+                },
+                'waynodes': {
+                    'maximum': maximum number of nodes that a way may contain,
+                },
+            }
+
+        The capabilities can be used by a client to
+        gain insights of the server in use.
+        """
+        uri = "/api/capabilities"
+        data = self._get(uri)
+
+        data = self._OsmResponseToDom(data, tag="api", single=True)
+        result = {}
+        for elem in data.childNodes:
+            if elem.nodeType != elem.ELEMENT_NODE:
+                continue
+            result[elem.nodeName] = {}
+            for k, v in elem.attributes.items():
+                try:
+                    result[elem.nodeName][k] = float(v)
+                except Exception:
+                    result[elem.nodeName][k] = v
+        return result
+
+    ##################################################
+    # Node                                           #
+    ##################################################
+
+    def NodeGet(self, NodeId, NodeVersion=-1):
+        """
+        Returns node with `NodeId` as a dict:
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': {},
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'timestamp': timestamp of last change,
+                'visible': True|False
+            }
+
+        If `NodeVersion` is supplied, this specific version is returned,
+        otherwise the latest version is returned.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/node/%s" % (NodeId)
+        if NodeVersion != -1:
+            uri += "/%s" % (NodeVersion)
+        data = self._get(uri)
+        data = self._OsmResponseToDom(data, tag="node", single=True)
+        return self._DomParseNode(data)
+
+    def NodeCreate(self, NodeData):
+        """
+        Creates a node based on the supplied `NodeData` dict:
+
+            #!python
+            {
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': {},
+            }
+
+        Returns updated `NodeData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If the supplied information contain an existing node,
+        `OsmApi.OsmTypeAlreadyExistsError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("create", "node", NodeData)
+
+    def NodeUpdate(self, NodeData):
+        """
+        Updates node with the supplied `NodeData` dict:
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': {},
+                'version': version number of node,
+            }
+
+        Returns updated `NodeData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("modify", "node", NodeData)
+
+    def NodeDelete(self, NodeData):
+        """
+        Delete node with `NodeData`:
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'version': version number of node,
+            }
+
+        Returns updated `NodeData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+
+        If the requested element has already been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        return self._do("delete", "node", NodeData)
+
+    def NodeHistory(self, NodeId):
+        """
+        Returns dict with version as key:
+
+            #!python
+            {
+                '1': dict of NodeData,
+                '2': dict of NodeData,
+                ...
+            }
+
+        `NodeId` is the unique identifier of a node.
+        """
+        uri = "/api/0.6/node/%s/history" % NodeId
+        data = self._get(uri)
+        nodes = self._OsmResponseToDom(data, tag="node")
+        result = {}
+        for node in nodes:
+            data = self._DomParseNode(node)
+            result[data["version"]] = data
+        return result
+
+    def NodeWays(self, NodeId):
+        """
+        Returns a list of dicts of `WayData` containing node `NodeId`:
+
+            #!python
+            [
+                {
+                    'id': id of Way,
+                    'nd': [] list of NodeIds in this way
+                    'tag': {} dict of tags,
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `NodeId` is a unique identifier for a node.
+        """
+        uri = "/api/0.6/node/%d/ways" % NodeId
+        data = self._get(uri)
+        ways = self._OsmResponseToDom(data, tag="way", allow_empty=True)
+        result = []
+        for way in ways:
+            data = self._DomParseWay(way)
+            result.append(data)
+        return result
+
+    def NodeRelations(self, NodeId):
+        """
+        Returns a list of dicts of `RelationData` containing node `NodeId`:
+
+            #!python
+            [
+                {
+                    'id': id of Relation,
+                    'member': [
+                        {
+                            'ref': ID of referenced element,
+                            'role': optional description of role in relation
+                            'type': node|way|relation
+                        },
+                        {
+                            ...
+                        }
+                    ]
+                    'tag': {},
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `NodeId` is a unique identifier for a node.
+        """
+        uri = "/api/0.6/node/%d/relations" % NodeId
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation", allow_empty=True)
+        result = []
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result.append(data)
+        return result
+
+    def NodesGet(self, NodeIdList):
+        """
+        Returns dict with the id of the Node as a key
+        for each node in `NodeIdList`:
+
+            #!python
+            {
+                '1234': dict of NodeData,
+                '5678': dict of NodeData,
+                ...
+            }
+
+        `NodeIdList` is a list containing unique identifiers
+        for multiple nodes.
+        """
+        node_list = ",".join([str(x) for x in NodeIdList])
+        uri = "/api/0.6/nodes?nodes=%s" % node_list
+        data = self._get(uri)
+        nodes = self._OsmResponseToDom(data, tag="node")
+        result = {}
+        for node in nodes:
+            data = self._DomParseNode(node)
+            result[data["id"]] = data
+        return result
+
+    ##################################################
+    # Way                                            #
+    ##################################################
+
+    def WayGet(self, WayId, WayVersion=-1):
+        """
+        Returns way with `WayId` as a dict:
+
+            #!python
+            {
+                'id': id of way,
+                'tag': {} tags of this way,
+                'nd': [] list of nodes belonging to this way
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'timestamp': timestamp of last change,
+                'visible': True|False
+            }
+
+        If `WayVersion` is supplied, this specific version is returned,
+        otherwise the latest version is returned.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/way/%s" % (WayId)
+        if WayVersion != -1:
+            uri += "/%s" % (WayVersion)
+        data = self._get(uri)
+        way = self._OsmResponseToDom(data, tag="way", single=True)
+        return self._DomParseWay(way)
+
+    def WayCreate(self, WayData):
+        """
+        Creates a way based on the supplied `WayData` dict:
+
+            #!python
+            {
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+            }
+
+        Returns updated `WayData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the supplied information contain an existing node,
+        `OsmApi.OsmTypeAlreadyExistsError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("create", "way", WayData)
+
+    def WayUpdate(self, WayData):
+        """
+        Updates way with the supplied `WayData` dict:
+
+            #!python
+            {
+                'id': id of way,
+                'nd': [] list of nodes,
+                'tag': {},
+                'version': version number of way,
+            }
+
+        Returns updated `WayData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("modify", "way", WayData)
+
+    def WayDelete(self, WayData):
+        """
+        Delete way with `WayData`:
+
+            #!python
+            {
+                'id': id of way,
+                'nd': [] list of nodes,
+                'tag': dict of tags,
+                'version': version number of way,
+            }
+
+        Returns updated `WayData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+
+        If the requested element has already been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        return self._do("delete", "way", WayData)
+
+    def WayHistory(self, WayId):
+        """
+        Returns dict with version as key:
+
+            #!python
+            {
+                '1': dict of WayData,
+                '2': dict of WayData,
+                ...
+            }
+
+        `WayId` is the unique identifier of a way.
+        """
+        uri = "/api/0.6/way/%s/history" % (WayId)
+        data = self._get(uri)
+        ways = self._OsmResponseToDom(data, tag="way")
+        result = {}
+        for way in ways:
+            data = self._DomParseWay(way)
+            result[data["version"]] = data
+        return result
+
+    def WayRelations(self, WayId):
+        """
+        Returns a list of dicts of `RelationData` containing way `WayId`:
+
+            #!python
+            [
+                {
+                    'id': id of Relation,
+                    'member': [
+                        {
+                            'ref': ID of referenced element,
+                            'role': optional description of role in relation
+                            'type': node|way|relation
+                        },
+                        {
+                            ...
+                        }
+                    ]
+                    'tag': {} dict of tags,
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `WayId` is a unique identifier for a way.
+        """
+        uri = "/api/0.6/way/%d/relations" % WayId
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation", allow_empty=True)
+        result = []
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result.append(data)
+        return result
+
+    def WayFull(self, WayId):
+        """
+        Returns the full data for way `WayId` as list of dicts:
+
+            #!python
+            [
+                {
+                    'type': node|way|relation,
+                    'data': {} data dict for node|way|relation
+                },
+                { ... }
+            ]
+
+        The `WayId` is a unique identifier for a way.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/way/%s/full" % (WayId)
+        data = self._get(uri)
+        return self.ParseOsm(data)
+
+    def WaysGet(self, WayIdList):
+        """
+        Returns dict with the id of the way as a key for
+        each way in `WayIdList`:
+
+            #!python
+            {
+                '1234': dict of WayData,
+                '5678': dict of WayData,
+                ...
+            }
+
+        `WayIdList` is a list containing unique identifiers for multiple ways.
+        """
+        way_list = ",".join([str(x) for x in WayIdList])
+        uri = "/api/0.6/ways?ways=%s" % way_list
+        data = self._get(uri)
+        ways = self._OsmResponseToDom(data, tag="way")
+        result = {}
+        for way in ways:
+            data = self._DomParseWay(way)
+            result[data["id"]] = data
+        return result
+
+    ##################################################
+    # Relation                                       #
+    ##################################################
+
+    def RelationGet(self, RelationId, RelationVersion=-1):
+        """
+        Returns relation with `RelationId` as a dict:
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'timestamp': timestamp of last change,
+                'visible': True|False
+            }
+
+        If `RelationVersion` is supplied, this specific version is returned,
+        otherwise the latest version is returned.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/relation/%s" % (RelationId)
+        if RelationVersion != -1:
+            uri += "/%s" % (RelationVersion)
+        data = self._get(uri)
+        relation = self._OsmResponseToDom(data, tag="relation", single=True)
+        return self._DomParseRelation(relation)
+
+    def RelationCreate(self, RelationData):
+        """
+        Creates a relation based on the supplied `RelationData` dict:
+
+            #!python
+            {
+                'member': [] list of members,
+                'tag': {} dict of tags,
+            }
+
+        Returns updated `RelationData` (without timestamp):
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the supplied information contain an existing node,
+        `OsmApi.OsmTypeAlreadyExistsError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("create", "relation", RelationData)
+
+    def RelationUpdate(self, RelationData):
+        """
+        Updates relation with the supplied `RelationData` dict:
+
+            #!python
+            {
+                'id': id of relation,
+                'member': [] list of member dicts,
+                'tag': {},
+                'version': version number of relation,
+            }
+
+        Returns updated `RelationData` (without timestamp):
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("modify", "relation", RelationData)
+
+    def RelationDelete(self, RelationData):
+        """
+        Delete relation with `RelationData` dict:
+
+            #!python
+            {
+                'id': id of relation,
+                'member': [] list of member dicts,
+                'tag': {},
+                'version': version number of relation,
+            }
+
+        Returns updated `RelationData` (without timestamp):
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+
+        If the requested element has already been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        return self._do("delete", "relation", RelationData)
+
+    def RelationHistory(self, RelationId):
+        """
+        Returns dict with version as key:
+
+            #!python
+            {
+                '1': dict of RelationData,
+                '2': dict of RelationData,
+                ...
+            }
+
+        `RelationId` is the unique identifier of a relation.
+        """
+        uri = "/api/0.6/relation/%s/history" % (RelationId)
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation")
+        result = {}
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result[data["version"]] = data
+        return result
+
+    def RelationRelations(self, RelationId):
+        """
+        Returns a list of dicts of `RelationData`
+        containing relation `RelationId`:
+
+            #!python
+            [
+                {
+                    'id': id of Relation,
+                    'member': [
+                        {
+                            'ref': ID of referenced element,
+                            'role': optional description of role in relation
+                            'type': node|way|relation
+                        },
+                        {
+                            ...
+                        }
+                    ]
+                    'tag': {} dict of tags,
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `RelationId` is a unique identifier for a relation.
+        """
+        uri = "/api/0.6/relation/%d/relations" % RelationId
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation", allow_empty=True)
+        result = []
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result.append(data)
+        return result
+
+    def RelationFullRecur(self, RelationId):
+        """
+        Returns the full data (all levels) for relation
+        `RelationId` as list of dicts:
+
+            #!python
+            [
+                {
+                    'type': node|way|relation,
+                    'data': {} data dict for node|way|relation
+                },
+                { ... }
+            ]
+
+        The `RelationId` is a unique identifier for a way.
+
+        This function is useful for relations containing other relations.
+
+        If you don't need all levels, use `OsmApi.RelationFull`
+        instead, which return only 2 levels.
+
+        If any relation (on any level) has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        data = []
+        todo = [RelationId]
+        done = []
+        while todo:
+            rid = todo.pop(0)
+            done.append(rid)
+            temp = self.RelationFull(rid)
+            for item in temp:
+                if item["type"] != "relation":
+                    continue
+                if item["data"]["id"] in done:
+                    continue
+                todo.append(item["data"]["id"])
+            data += temp
+        return data
+
+    def RelationFull(self, RelationId):
+        """
+        Returns the full data (two levels) for relation
+        `RelationId` as list of dicts:
+
+            #!python
+            [
+                {
+                    'type': node|way|relation,
+                    'data': {} data dict for node|way|relation
+                },
+                { ... }
+            ]
+
+        The `RelationId` is a unique identifier for a way.
+
+        If you need all levels, use `OsmApi.RelationFullRecur`.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/relation/%s/full" % (RelationId)
+        data = self._get(uri)
+        return self.ParseOsm(data)
+
+    def RelationsGet(self, RelationIdList):
+        """
+        Returns dict with the id of the relation as a key
+        for each relation in `RelationIdList`:
+
+            #!python
+            {
+                '1234': dict of RelationData,
+                '5678': dict of RelationData,
+                ...
+            }
+
+        `RelationIdList` is a list containing unique identifiers
+        for multiple relations.
+        """
+        relation_list = ",".join([str(x) for x in RelationIdList])
+        uri = "/api/0.6/relations?relations=%s" % relation_list
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation")
+        result = {}
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result[data["id"]] = data
+        return result
+
+    ##################################################
+    # Changeset                                      #
+    ##################################################
+
+    def ChangesetGet(self, ChangesetId, include_discussion=False):
+        """
+        Returns changeset with `ChangesetId` as a dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'discussion': [] list of comment dict (-> `include_discussion`)
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+        `ChangesetId` is the unique identifier of a changeset.
+
+        If `include_discussion` is set to `True` the changeset discussion
+        will be available in the result.
+        """
+        path = "/api/0.6/changeset/%s" % (ChangesetId)
+        if (include_discussion):
+            path += "?include_discussion=true"
+        data = self._get(path)
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+    def ChangesetUpdate(self, ChangesetTags={}):
+        """
+        Updates current changeset with `ChangesetTags`.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        if not self._CurrentChangesetId:
+            raise NoChangesetOpenError("No changeset currently opened")
+        if "created_by" not in ChangesetTags:
+            ChangesetTags["created_by"] = self._created_by
+        try:
+            self._put(
+                "/api/0.6/changeset/%s" % (self._CurrentChangesetId),
+                self._XmlBuild("changeset", {"tag": ChangesetTags}),
+                return_value=False
+            )
+        except ApiError as e:
+            if e.status == 409:
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        return self._CurrentChangesetId
+
+    def ChangesetCreate(self, ChangesetTags={}):
+        """
+        Opens a changeset.
+
+        If `ChangesetTags` are given, this tags are applied (key/value).
+
+        Returns `ChangesetId`
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+        """
+        if self._CurrentChangesetId:
+            raise ChangesetAlreadyOpenError("Changeset already opened")
+        if "created_by" not in ChangesetTags:
+            ChangesetTags["created_by"] = self._created_by
+        result = self._put(
+            "/api/0.6/changeset/create",
+            self._XmlBuild("changeset", {"tag": ChangesetTags})
+        )
+        self._CurrentChangesetId = int(result)
+        return self._CurrentChangesetId
+
+    def ChangesetClose(self):
+        """
+        Closes current changeset.
+
+        Returns `ChangesetId`.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        if not self._CurrentChangesetId:
+            raise NoChangesetOpenError("No changeset currently opened")
+        try:
+            self._put(
+                "/api/0.6/changeset/%s/close" % (self._CurrentChangesetId),
+                "",
+                return_value=False
+            )
+            CurrentChangesetId = self._CurrentChangesetId
+            self._CurrentChangesetId = 0
+        except ApiError as e:
+            if e.status == 409:
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        return CurrentChangesetId
+
+    def ChangesetUpload(self, ChangesData):
+        """
+        Upload data with the `ChangesData` list of dicts:
+
+            #!python
+            {
+                type: node|way|relation,
+                action: create|delete|modify,
+                data: {}
+            }
+
+        Returns list with updated ids.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        data = ""
+        data += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+        data += "<osmChange version=\"0.6\" generator=\""
+        data += self._created_by + "\">\n"
+        for change in ChangesData:
+            data += "<" + change["action"] + ">\n"
+            change["data"]["changeset"] = self._CurrentChangesetId
+            data += self._XmlBuild(
+                change["type"],
+                change["data"],
+                False
+            ).decode("utf-8")
+            data += "</" + change["action"] + ">\n"
+        data += "</osmChange>"
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/upload" % (self._CurrentChangesetId),
+                data.encode("utf-8")
+            )
+        except ApiError as e:
+            if e.status == 409 and re.search(r"The changeset .* was closed at .*", e.payload):
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        try:
+            data = xml.dom.minidom.parseString(data)
+            data = data.getElementsByTagName("diffResult")[0]
+            data = [x for x in data.childNodes if x.nodeType == x.ELEMENT_NODE]
+        except (xml.parsers.expat.ExpatError, IndexError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        for i in range(len(ChangesData)):
+            if ChangesData[i]["action"] == "delete":
+                ChangesData[i]["data"].pop("version")
+            else:
+                new_id = int(data[i].getAttribute("new_id"))
+                ChangesData[i]["data"]["id"] = new_id
+                new_version = int(data[i].getAttribute("new_version"))
+                ChangesData[i]["data"]["version"] = new_version
+        return ChangesData
+
+    def ChangesetDownload(self, ChangesetId):
+        """
+        Download data from changeset `ChangesetId`.
+
+        Returns list of dict:
+
+            #!python
+            {
+                'type': node|way|relation,
+                'action': create|delete|modify,
+                'data': {}
+            }
+        """
+        uri = "/api/0.6/changeset/%s/download" % (ChangesetId)
+        data = self._get(uri)
+        return self.ParseOsc(data)
+
+    def ChangesetsGet(  # noqa
+            self,
+            min_lon=None,
+            min_lat=None,
+            max_lon=None,
+            max_lat=None,
+            userid=None,
+            username=None,
+            closed_after=None,
+            created_before=None,
+            only_open=False,
+            only_closed=False):
+        """
+        Returns a dict with the id of the changeset as key
+        matching all criteria:
+
+            #!python
+            {
+                '1234': dict of ChangesetData,
+                '5678': dict of ChangesetData,
+                ...
+            }
+
+        All parameters are optional.
+        """
+
+        uri = "/api/0.6/changesets"
+        params = {}
+        if min_lon or min_lat or max_lon or max_lat:
+            params["bbox"] = ",".join(
+                [
+                    str(min_lon),
+                    str(min_lat),
+                    str(max_lon),
+                    str(max_lat)
+                ]
+            )
+        if userid:
+            params["user"] = userid
+        if username:
+            params["display_name"] = username
+        if closed_after and not created_before:
+            params["time"] = closed_after
+        if created_before:
+            if not closed_after:
+                closed_after = "1970-01-01T00:00:00Z"
+            params["time"] = "%s,%s" % (closed_after, created_before)
+        if only_open:
+            params["open"] = 1
+        if only_closed:
+            params["closed"] = 1
+
+        if params:
+            uri += "?" + urllib.parse.urlencode(params)
+
+        data = self._get(uri)
+        changesets = self._OsmResponseToDom(data, tag="changeset")
+        result = {}
+        for curChangeset in changesets:
+            tmpCS = self._DomParseChangeset(curChangeset)
+            result[tmpCS["id"]] = tmpCS
+        return result
+
+    def ChangesetComment(self, ChangesetId, comment):
+        """
+        Adds a comment to the changeset `ChangesetId`
+
+        `comment` should be a string.
+
+        Returns the updated `ChangesetData` dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        params = urllib.parse.urlencode({'text': comment})
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/comment" % (ChangesetId),
+                params
+            )
+        except ApiError as e:
+            if e.status == 409:
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+    def ChangesetSubscribe(self, ChangesetId):
+        """
+        Subcribe to the changeset discussion of changeset `ChangesetId`.
+
+        The user will be informed about new comments (i.e. receive an email).
+
+        Returns the updated `ChangesetData` dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+        """
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/subscribe" % (ChangesetId),
+                None
+            )
+        except ApiError as e:
+            if e.status == 409:
+                raise AlreadySubscribedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+    def ChangesetUnsubscribe(self, ChangesetId):
+        """
+        Subcribe to the changeset discussion of changeset `ChangesetId`.
+
+        The user will be informed about new comments (i.e. receive an email).
+
+        Returns the updated `ChangesetData` dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+        """
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/unsubscribe" % (ChangesetId),
+                None
+            )
+        except ApiError as e:
+            if e.status == 404:
+                raise NotSubscribedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+    ##################################################
+    # Notes                                          #
+    ##################################################
+
+    def NotesGet(
+            self,
+            min_lon,
+            min_lat,
+            max_lon,
+            max_lat,
+            limit=100,
+            closed=7):
+        """
+        Returns a list of dicts of notes in the specified bounding box:
+
+            #!python
+            [
+                {
+                    'id': integer,
+                    'action': opened|commented|closed,
+                    'status': open|closed
+                    'date_created': creation date
+                    'date_closed': closing data|None
+                    'uid': User ID|None
+                    'user': User name|None
+                    'comments': {}
+                },
+                { ... }
+            ]
+
+        The limit parameter defines how many results should be returned.
+
+        closed specifies the number of days a bug needs to be closed
+        to no longer be returned.
+        The value 0 means only open bugs are returned,
+        -1 means all bugs are returned.
+
+        All parameters are optional.
+        """
+        uri = (
+            "/api/0.6/notes?bbox=%f,%f,%f,%f&limit=%d&closed=%d"
+            % (min_lon, min_lat, max_lon, max_lat, limit, closed)
+        )
+        data = self._get(uri)
+        return self.ParseNotes(data)
+
+    def NoteGet(self, id):
+        """
+        Returns a note as dict:
+
+            #!python
+            {
+                'id': integer,
+                'action': opened|commented|closed,
+                'status': open|closed
+                'date_created': creation date
+                'date_closed': closing data|None
+                'uid': User ID|None
+                'user': User name|None
+                'comments': {}
+            }
+
+        `id` is the unique identifier of the note.
+        """
+        uri = "/api/0.6/notes/%s" % (id)
+        data = self._get(uri)
+        noteElement = self._OsmResponseToDom(data, tag="note", single=True)
+        return self._DomParseNote(noteElement)
+
+    def NoteCreate(self, NoteData):
+        """
+        Creates a note.
+
+        Returns updated NoteData (without timestamp).
+        """
+        uri = "/api/0.6/notes"
+        uri += "?" + urllib.parse.urlencode(NoteData)
+        return self._NoteAction(uri)
+
+    def NoteComment(self, NoteId, comment):
+        """
+        Adds a new comment to a note.
+
+        Returns the updated note.
+        """
+        path = "/api/0.6/notes/%s/comment" % NoteId
+        return self._NoteAction(path, comment)
+
+    def NoteClose(self, NoteId, comment):
+        """
+        Closes a note.
+
+        Returns the updated note.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+        """
+        path = "/api/0.6/notes/%s/close" % NoteId
+        return self._NoteAction(path, comment, optionalAuth=False)
+
+    def NoteReopen(self, NoteId, comment):
+        """
+        Reopens a note.
+
+        Returns the updated note.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        path = "/api/0.6/notes/%s/reopen" % NoteId
+        return self._NoteAction(path, comment, optionalAuth=False)
+
+    def NotesSearch(self, query, limit=100, closed=7):
+        """
+        Returns a list of dicts of notes that match the given search query.
+
+        The limit parameter defines how many results should be returned.
+
+        closed specifies the number of days a bug needs to be closed
+        to no longer be returned.
+        The value 0 means only open bugs are returned,
+        -1 means all bugs are returned.
+        """
+        uri = "/api/0.6/notes/search"
+        params = {}
+        params['q'] = query
+        params['limit'] = limit
+        params['closed'] = closed
+        uri += "?" + urllib.parse.urlencode(params)
+        data = self._get(uri)
+
+        return self.ParseNotes(data)
+
+    def _NoteAction(self, path, comment=None, optionalAuth=True):
+        """
+        Performs an action on a Note with a comment
+
+        Return the updated note
+        """
+        uri = path
+        if comment is not None:
+            params = {}
+            params['text'] = comment
+            uri += "?" + urllib.parse.urlencode(params)
+        try:
+            result = self._post(uri, None, optionalAuth=optionalAuth)
+        except ApiError as e:
+            if e.status == 404:
+                raise NoteClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+
+        # parse the result
+        noteElement = self._OsmResponseToDom(result, tag="note", single=True)
+        return self._DomParseNote(noteElement)
+
+    ##################################################
+    # Other                                          #
+    ##################################################
+
+    def Map(self, min_lon, min_lat, max_lon, max_lat):
+        """
+        Download data in bounding box.
+
+        Returns list of dict:
+
+            #!python
+            {
+                type: node|way|relation,
+                data: {}
+            }
+        """
+        uri = (
+            "/api/0.6/map?bbox=%f,%f,%f,%f"
+            % (min_lon, min_lat, max_lon, max_lat)
+        )
+        data = self._get(uri)
+        return self.ParseOsm(data)
+
+    ##################################################
+    # Data parser                                    #
+    ##################################################
+
+    def ParseOsm(self, data):
+        """
+        Parse osm data.
+
+        Returns list of dict:
+
+            #!python
+            {
+                type: node|way|relation,
+                data: {}
+            }
+        """
+        try:
+            data = xml.dom.minidom.parseString(data)
+            data = data.getElementsByTagName("osm")[0]
+        except (xml.parsers.expat.ExpatError, IndexError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        result = []
+        for elem in data.childNodes:
+            if elem.nodeName == "node":
+                result.append({
+                    "type": elem.nodeName,
+                    "data": self._DomParseNode(elem)
+                })
+            elif elem.nodeName == "way":
+                result.append({
+                    "type": elem.nodeName,
+                    "data": self._DomParseWay(elem)
+                })
+            elif elem.nodeName == "relation":
+                result.append({
+                    "type": elem.nodeName,
+                    "data": self._DomParseRelation(elem)
+                })
+        return result
+
+    def ParseOsc(self, data):
+        """
+        Parse osc data.
+
+        Returns list of dict:
+
+            #!python
+            {
+                type: node|way|relation,
+                action: create|delete|modify,
+                data: {}
+            }
+        """
+        try:
+            data = xml.dom.minidom.parseString(data)
+            data = data.getElementsByTagName("osmChange")[0]
+        except (xml.parsers.expat.ExpatError, IndexError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        result = []
+        for action in data.childNodes:
+            if action.nodeName == "#text":
+                continue
+            for elem in action.childNodes:
+                if elem.nodeName == "node":
+                    result.append({
+                        "action": action.nodeName,
+                        "type": elem.nodeName,
+                        "data": self._DomParseNode(elem)
+                    })
+                elif elem.nodeName == "way":
+                    result.append({
+                        "action": action.nodeName,
+                        "type": elem.nodeName,
+                        "data": self._DomParseWay(elem)
+                    })
+                elif elem.nodeName == "relation":
+                    result.append({
+                        "action": action.nodeName,
+                        "type": elem.nodeName,
+                        "data": self._DomParseRelation(elem)
+                    })
+        return result
+
+    def ParseNotes(self, data):
+        """
+        Parse notes data.
+
+        Returns a list of dict:
+
+            #!python
+            [
+                {
+                    'id': integer,
+                    'action': opened|commented|closed,
+                    'status': open|closed
+                    'date_created': creation date
+                    'date_closed': closing data|None
+                    'uid': User ID|None
+                    'user': User name|None
+                    'comments': {}
+                },
+                { ... }
+            ]
+        """
+        noteElements = self._OsmResponseToDom(data, tag="note")
+        result = []
+        for noteElement in noteElements:
+            note = self._DomParseNote(noteElement)
+            result.append(note)
+        return result
+
+    ##################################################
+    # Internal http function                         #
+    ##################################################
+
+    def _do(self, action, OsmType, OsmData):
+        if self._changesetauto:
+            self._changesetautodata.append({
+                "action": action,
+                "type": OsmType,
+                "data": OsmData
+            })
+            self._changesetautoflush()
+            return None
+        else:
+            return self._do_manu(action, OsmType, OsmData)
+
+    def _do_manu(self, action, OsmType, OsmData):  # noqa
+        if not self._CurrentChangesetId:
+            raise NoChangesetOpenError(
+                "You need to open a changeset before uploading data"
+            )
+        if "timestamp" in OsmData:
+            OsmData.pop("timestamp")
+        OsmData["changeset"] = self._CurrentChangesetId
+        if action == "create":
+            if OsmData.get("id", -1) > 0:
+                raise OsmTypeAlreadyExistsError(
+                    "This %s already exists" % OsmType
+                )
+            try:
+                result = self._put(
+                    "/api/0.6/%s/create" % OsmType,
+                    self._XmlBuild(OsmType, OsmData)
+                )
+            except ApiError as e:
+                if e.status == 409 and re.search(r"The changeset .* was closed at .*", e.payload):
+                    raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+                elif e.status == 409:
+                    raise VersionMismatchApiError(e.status, e.reason, e.payload)
+                elif e.status == 412:
+                    raise PreconditionFailedApiError(e.status, e.reason, e.payload)
+                else:
+                    raise
+            OsmData["id"] = int(result.strip())
+            OsmData["version"] = 1
+            return OsmData
+        elif action == "modify":
+            try:
+                result = self._put(
+                    "/api/0.6/%s/%s" % (OsmType, OsmData["id"]),
+                    self._XmlBuild(OsmType, OsmData)
+                )
+            except ApiError as e:
+                print(e.reason)
+                if e.status == 409 and re.search(r"The changeset .* was closed at .*", e.payload):
+                    raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+                elif e.status == 409:
+                    raise VersionMismatchApiError(e.status, e.reason, e.payload)
+                elif e.status == 412:
+                    raise PreconditionFailedApiError(e.status, e.reason, e.payload)
+                else:
+                    raise
+            OsmData["version"] = int(result.strip())
+            return OsmData
+        elif action == "delete":
+            try:
+                result = self._delete(
+                    "/api/0.6/%s/%s" % (OsmType, OsmData["id"]),
+                    self._XmlBuild(OsmType, OsmData)
+                )
+            except ApiError as e:
+                if e.status == 409 and re.search(r"The changeset .* was closed at .*", e.payload):
+                    raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+                elif e.status == 409:
+                    raise VersionMismatchApiError(e.status, e.reason, e.payload)
+                elif e.status == 412:
+                    raise PreconditionFailedApiError(e.status, e.reason, e.payload)
+                else:
+                    raise
+            OsmData["version"] = int(result.strip())
+            OsmData["visible"] = False
+            return OsmData
+
+    def flush(self):
+        """
+        Force the changes to be uploaded to OSM and the changeset to be closed
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+        """
+        return self._changesetautoflush(True)
+
+    def _changesetautoflush(self, force=False):
+        autosize = self._changesetautosize
+        while ((len(self._changesetautodata) >= autosize) or
+                (force and self._changesetautodata)):
+            if self._changesetautocpt == 0:
+                self.ChangesetCreate(self._changesetautotags)
+            self.ChangesetUpload(
+                self._changesetautodata[:autosize]
+            )
+            self._changesetautodata = self._changesetautodata[autosize:]
+            self._changesetautocpt += 1
+            if self._changesetautocpt == self._changesetautomulti:
+                self.ChangesetClose()
+                self._changesetautocpt = 0
+        if self._changesetautocpt and force:
+            self.ChangesetClose()
+            self._changesetautocpt = 0
+        return None
+
+    def _http_request(self, method, path, auth, send, return_value=True):  # noqa
+        """
+        Returns the response generated by an HTTP request.
+
+        `method` is a HTTP method to be executed
+        with the request data. For example: 'GET' or 'POST'.
+        `path` is the path to the requested resource relative to the
+        base API address stored in self._api. Should start with a
+        slash character to separate the URL.
+        `auth` is a boolean indicating whether authentication should
+        be preformed on this request.
+        `send` contains additional data that might be sent in a
+        request.
+        `return_value` indicates wheter this request should return
+        any data or not.
+
+        If the username or password is missing,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+
+        If the response status code indicates an error,
+        `OsmApi.ApiError` is raised.
+        """
+        if self._debug:
+            error_msg = (
+                "%s %s %s"
+                % (time.strftime("%Y-%m-%d %H:%M:%S"), method, path)
+            )
+            print(error_msg, file=sys.stderr)
+
+        # Add API base URL to path
+        path = self._api + path
+
+        user_pass = None
+        if auth:
+            try:
+                user_pass = (self._username, self._password)
+            except AttributeError:
+                raise UsernamePasswordMissingError("Username/Password missing")
+
+        response = self._session.request(method, path, auth=user_pass,
+                                         data=send)
+        if response.status_code != 200:
+            payload = response.content.strip()
+            if response.status_code == 410:
+                raise ElementDeletedApiError(
+                    response.status_code,
+                    response.reason,
+                    payload
+                )
+            raise ApiError(response.status_code, response.reason, payload)
+        if return_value and not response.content:
+            raise ResponseEmptyApiError(
+                response.status_code,
+                response.reason,
+                ''
+            )
+
+        if self._debug:
+            error_msg = (
+                "%s %s %s"
+                % (time.strftime("%Y-%m-%d %H:%M:%S"), method, path)
+            )
+            print(error_msg, file=sys.stderr)
+        return response.content
+
+    def _http(self, cmd, path, auth, send, return_value=True):  # noqa
+        i = 0
+        while True:
+            i += 1
+            try:
+                return self._http_request(
+                    cmd,
+                    path,
+                    auth,
+                    send,
+                    return_value=return_value
+                )
+            except ApiError as e:
+                if e.status >= 500:
+                    if i == self.MAX_RETRY_LIMIT:
+                        raise
+                    if i != 1:
+                        self._sleep()
+                    self._session = self._get_http_session()
+                else:
+                    raise
+            except Exception as e:
+                print(e)
+                if i == self.MAX_RETRY_LIMIT:
+                    if isinstance(e, OsmApiError):
+                        raise
+                    raise MaximumRetryLimitReachedError(
+                        "Give up after %s retries" % i
+                    )
+                if i != 1:
+                    self._sleep()
+                self._session = self._get_http_session()
+
+    def _get_http_session(self):
+        """
+        Creates a requests session for connection pooling.
+        """
+        session = requests.Session()
+        session.headers.update({
+            'user-agent': self._created_by
+        })
+        return session
+
+    def _sleep(self):
+        time.sleep(5)
+
+    def _get(self, path):
+        return self._http('GET', path, False, None)
+
+    def _put(self, path, data, return_value=True):
+        return self._http('PUT', path, True, data, return_value=return_value)
+
+    def _post(self, path, data, optionalAuth=False):
+        auth = True
+        # the Notes API allows certain POSTs by non-authenticated users
+        if optionalAuth:
+            auth = hasattr(self, '_username')
+        return self._http('POST', path, auth, data)
+
+    def _delete(self, path, data):
+        return self._http('DELETE', path, True, data)
+
+    ##################################################
+    # Internal dom function                          #
+    ##################################################
+
+    def _OsmResponseToDom(self, response, tag, single=False, allow_empty=False):
+        """
+        Returns the (sub-) DOM parsed from an OSM response
+        """
+        try:
+            dom = xml.dom.minidom.parseString(response)
+            osm_dom = dom.getElementsByTagName("osm")[0]
+            all_data = osm_dom.getElementsByTagName(tag)
+            first_element = all_data[0]
+        except (IndexError) as e:
+            if allow_empty:
+                return []
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+        except (xml.parsers.expat.ExpatError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        if single:
+            return first_element
+        return all_data
+
+    def _DomGetAttributes(self, DomElement):  # noqa
+        """
+        Returns a formated dictionnary of attributes of a DomElement.
+        """
+        result = {}
+        for k, v in DomElement.attributes.items():
+            if k == "uid":
+                v = int(v)
+            elif k == "changeset":
+                v = int(v)
+            elif k == "version":
+                v = int(v)
+            elif k == "id":
+                v = int(v)
+            elif k == "lat":
+                v = float(v)
+            elif k == "lon":
+                v = float(v)
+            elif k == "open":
+                v = (v == "true")
+            elif k == "visible":
+                v = (v == "true")
+            elif k == "ref":
+                v = int(v)
+            elif k == "comments_count":
+                v = int(v)
+            elif k == "timestamp":
+                v = self._ParseDate(v)
+            elif k == "created_at":
+                v = self._ParseDate(v)
+            elif k == "closed_at":
+                v = self._ParseDate(v)
+            elif k == "date":
+                v = self._ParseDate(v)
+            result[k] = v
+        return result
+
+    def _DomGetTag(self, DomElement):
+        """
+        Returns the dictionnary of tags of a DomElement.
+        """
+        result = {}
+        for t in DomElement.getElementsByTagName("tag"):
+            k = t.attributes["k"].value
+            v = t.attributes["v"].value
+            result[k] = v
+        return result
+
+    def _DomGetNd(self, DomElement):
+        """
+        Returns the list of nodes of a DomElement.
+        """
+        result = []
+        for t in DomElement.getElementsByTagName("nd"):
+            result.append(int(int(t.attributes["ref"].value)))
+        return result
+
+    def _DomGetDiscussion(self, DomElement):
+        """
+        Returns the dictionnary of comments of a DomElement.
+        """
+        result = []
+        try:
+            discussion = DomElement.getElementsByTagName("discussion")[0]
+            for t in discussion.getElementsByTagName("comment"):
+                comment = self._DomGetAttributes(t)
+                comment['text'] = self._GetXmlValue(t, "text")
+                result.append(comment)
+        except IndexError:
+            pass
+        return result
+
+    def _DomGetComments(self, DomElement):
+        """
+        Returns the list of comments of a DomElement.
+        """
+        result = []
+        for t in DomElement.getElementsByTagName("comment"):
+            comment = {}
+            comment['date'] = self._ParseDate(self._GetXmlValue(t, "date"))
+            comment['action'] = self._GetXmlValue(t, "action")
+            comment['text'] = self._GetXmlValue(t, "text")
+            comment['html'] = self._GetXmlValue(t, "html")
+            comment['uid'] = self._GetXmlValue(t, "uid")
+            comment['user'] = self._GetXmlValue(t, "user")
+            result.append(comment)
+        return result
+
+    def _DomGetMember(self, DomElement):
+        """
+        Returns a list of relation members.
+        """
+        result = []
+        for m in DomElement.getElementsByTagName("member"):
+            result.append(self._DomGetAttributes(m))
+        return result
+
+    def _DomParseNode(self, DomElement):
+        """
+        Returns NodeData for the node.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["tag"] = self._DomGetTag(DomElement)
+        return result
+
+    def _DomParseWay(self, DomElement):
+        """
+        Returns WayData for the way.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["tag"] = self._DomGetTag(DomElement)
+        result["nd"] = self._DomGetNd(DomElement)
+        return result
+
+    def _DomParseRelation(self, DomElement):
+        """
+        Returns RelationData for the relation.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["tag"] = self._DomGetTag(DomElement)
+        result["member"] = self._DomGetMember(DomElement)
+        return result
+
+    def _DomParseChangeset(self, DomElement):
+        """
+        Returns ChangesetData for the changeset.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["tag"] = self._DomGetTag(DomElement)
+        result["discussion"] = self._DomGetDiscussion(DomElement)
+
+        return result
+
+    def _DomParseNote(self, DomElement):
+        """
+        Returns NoteData for the note.
+        """
+        result = self._DomGetAttributes(DomElement)
+        result["id"] = self._GetXmlValue(DomElement, "id")
+        result["status"] = self._GetXmlValue(DomElement, "status")
+
+        result["date_created"] = self._ParseDate(
+            self._GetXmlValue(DomElement, "date_created")
+        )
+        result["date_closed"] = self._ParseDate(
+            self._GetXmlValue(DomElement, "date_closed")
+        )
+        result["comments"] = self._DomGetComments(DomElement)
+
+        return result
+
+    def _ParseDate(self, DateString):
+        result = DateString
+        try:
+            result = datetime.strptime(DateString, "%Y-%m-%d %H:%M:%S UTC")
+        except Exception:
+            try:
+                result = datetime.strptime(DateString, "%Y-%m-%dT%H:%M:%SZ")
+            except Exception:
+                pass
+
+        return result
+
+    ##################################################
+    # Internal xml builder                           #
+    ##################################################
+
+    def _XmlBuild(self, ElementType, ElementData, WithHeaders=True):  # noqa
+
+        xml = ""
+        if WithHeaders:
+            xml += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+            xml += "<osm version=\"0.6\" generator=\""
+            xml += self._created_by + "\">\n"
+
+        # <element attr="val">
+        xml += "  <" + ElementType
+        if "id" in ElementData:
+            xml += " id=\"" + str(ElementData["id"]) + "\""
+        if "lat" in ElementData:
+            xml += " lat=\"" + str(ElementData["lat"]) + "\""
+        if "lon" in ElementData:
+            xml += " lon=\"" + str(ElementData["lon"]) + "\""
+        if "version" in ElementData:
+            xml += " version=\"" + str(ElementData["version"]) + "\""
+        visible_str = str(ElementData.get("visible", True)).lower()
+        xml += " visible=\"" + visible_str + "\""
+        if ElementType in ["node", "way", "relation"]:
+            xml += " changeset=\"" + str(self._CurrentChangesetId) + "\""
+        xml += ">\n"
+
+        # <tag... />
+        for k, v in ElementData.get("tag", {}).items():
+            xml += "    <tag k=\"" + self._XmlEncode(k)
+            xml += "\" v=\"" + self._XmlEncode(v) + "\"/>\n"
+
+        # <member... />
+        for member in ElementData.get("member", []):
+            xml += "    <member type=\"" + member["type"]
+            xml += "\" ref=\"" + str(member["ref"])
+            xml += "\" role=\"" + self._XmlEncode(member["role"])
+            xml += "\"/>\n"
+
+        # <nd... />
+        for ref in ElementData.get("nd", []):
+            xml += "    <nd ref=\"" + str(ref) + "\"/>\n"
+
+        # </element>
+        xml += "  </" + ElementType + ">\n"
+
+        if WithHeaders:
+            xml += "</osm>\n"
+
+        return xml.encode("utf8")
+
+    def _XmlEncode(self, text):
+        return (
+            text
+            .replace("&", "&amp;")
+            .replace("\"", "&quot;")
+            .replace("<", "&lt;")
+            .replace(">", "&gt;")
+        )
+
+    def _GetXmlValue(self, DomElement, tag):
+        try:
+            elem = DomElement.getElementsByTagName(tag)[0]
+            return elem.firstChild.nodeValue
+        except Exception:
+            return None
+
+ +
+ +

Main class of osmapi, instanciate this class to use osmapi

+
+ + +
+
#   + + + OsmApi( + username=None, + password=None, + passwordfile=None, + appid='', + created_by='osmapi/2.0.1', + api='https://www.openstreetmap.org', + changesetauto=False, + changesetautotags={}, + changesetautosize=500, + changesetautomulti=1, + debug=False +) +
+ +
+ View Source +
    def __init__(
+            self,
+            username=None,
+            password=None,
+            passwordfile=None,
+            appid="",
+            created_by="osmapi/%s" % __version__,
+            api="https://www.openstreetmap.org",
+            changesetauto=False,
+            changesetautotags={},
+            changesetautosize=500,
+            changesetautomulti=1,
+            debug=False):
+        """
+        Initialized the OsmApi object.
+
+        There are two different ways to authenticate a user.
+        Either `username` and `password` are supplied directly or the path
+        to a `passwordfile` is given, where on the first line username
+        and password must be colon-separated (<user>:<pass>).
+
+        To credit the application that supplies changes to OSM, an `appid`
+        can be provided.  This is a string identifying the application.
+        If this is omitted "osmapi" is used.
+
+        It is possible to configure the URL to connect to using the `api`
+        parameter.  By default this is the SSL version of the production API
+        of OpenStreetMap, for testing purposes, one might prefer the official
+        test instance at "api06.dev.openstreetmap.org" or any other valid
+        OSM-API. To use an encrypted connection (HTTPS) simply add 'https://'
+        in front of the hostname of the `api` parameter (e.g.
+        https://api.openstreetmap.com).
+
+        There are several options to control the changeset behaviour. By
+        default, a programmer has to take care to open and close a changeset
+        prior to make changes to OSM.
+        By setting `changesetauto` to `True`, osmapi automatically opens
+        changesets.
+        The `changesetautotags` parameter takes a `dict`, where each key/value
+        pair is applied as tags to the changeset.
+        The option `changesetautosize` defines the size of each
+        upload (default: 500) and `changesetautomulti` defines how many
+        uploads should be made before closing a changeset and opening a new
+        one (default: 1).
+
+        The `debug` parameter can be used to generate a more verbose output.
+        """
+
+        # debug
+        self._debug = debug
+
+        # Get username
+        if username:
+            self._username = username
+        elif passwordfile:
+            with open(passwordfile) as f:
+                pass_line = f.readline()
+            self._username = pass_line.split(":")[0].strip()
+
+        # Get password
+        if password:
+            self._password = password
+        elif passwordfile:
+            with open(passwordfile) as f:
+                for line in f:
+                    line = line.strip().split(":", 1)
+                    if line[0] == self._username:
+                        self._password = line[1]
+
+        # Changest informations
+        # auto create and close changesets
+        self._changesetauto = changesetauto
+        # tags for automatic created changesets
+        self._changesetautotags = changesetautotags
+        # change count for auto changeset
+        self._changesetautosize = changesetautosize
+        # change count for auto changeset
+        self._changesetautosize = changesetautosize
+        # close a changeset every # upload
+        self._changesetautomulti = changesetautomulti
+        self._changesetautocpt = 0
+        # data to upload for auto group
+        self._changesetautodata = []
+
+        # Get API
+        self._api = api.strip('/')
+
+        # Get created_by
+        if not appid:
+            self._created_by = created_by
+        else:
+            self._created_by = "%s (%s)" % (appid, created_by)
+
+        # Initialisation
+        self._CurrentChangesetId = 0
+
+        # Http connection
+        self._session = self._get_http_session()
+
+ +
+ +

Initialized the OsmApi object.

+ +

There are two different ways to authenticate a user. +Either username and password are supplied directly or the path +to a passwordfile is given, where on the first line username +and password must be colon-separated (:).

+ +

To credit the application that supplies changes to OSM, an appid +can be provided. This is a string identifying the application. +If this is omitted "osmapi" is used.

+ +

It is possible to configure the URL to connect to using the api +parameter. By default this is the SSL version of the production API +of OpenStreetMap, for testing purposes, one might prefer the official +test instance at "api06.dev.openstreetmap.org" or any other valid +OSM-API. To use an encrypted connection (HTTPS) simply add 'https://' +in front of the hostname of the api parameter (e.g. +https://api.openstreetmap.com).

+ +

There are several options to control the changeset behaviour. By +default, a programmer has to take care to open and close a changeset +prior to make changes to OSM. +By setting changesetauto to True, osmapi automatically opens +changesets. +The changesetautotags parameter takes a dict, where each key/value +pair is applied as tags to the changeset. +The option changesetautosize defines the size of each +upload (default: 500) and changesetautomulti defines how many +uploads should be made before closing a changeset and opening a new +one (default: 1).

+ +

The debug parameter can be used to generate a more verbose output.

+
+ + +
+
+
#   + + MAX_RETRY_LIMIT = 5 +
+ +

Maximum retries if a call to the remote API fails (default: 5)

+
+ + +
+
+
#   + + + def + close(self): +
+ +
+ View Source +
    def close(self):
+        try:
+            if self._changesetauto:
+                self._changesetautoflush(True)
+        except ResponseEmptyApiError:
+            pass
+
+        if self._session:
+            self._session.close()
+
+ +
+ + + +
+
+
#   + + + def + Capabilities(self): +
+ +
+ View Source +
    def Capabilities(self):
+        """
+        Returns the API capabilities as a dict:
+
+            #!python
+            {
+                'area': {
+                    'maximum': area in square degrees that can be queried,
+                },
+                'changesets': {
+                    'maximum_elements': number of elements per changeset,
+                },
+                'status': {
+                    'api': online|readonly|offline,
+                    'database': online|readonly|offline,
+                    'gpx': online|readonly|offline,
+                },
+                'timeout': {
+                    'seconds': timeout in seconds for API calls,
+                },
+                'tracepoints': {
+                    'per_page': maximum number of points in a GPX track,
+                },
+                'version': {
+                    'maximum': maximum version of API this server supports,
+                    'minimum': minimum version of API this server supports,
+                },
+                'waynodes': {
+                    'maximum': maximum number of nodes that a way may contain,
+                },
+            }
+
+        The capabilities can be used by a client to
+        gain insights of the server in use.
+        """
+        uri = "/api/capabilities"
+        data = self._get(uri)
+
+        data = self._OsmResponseToDom(data, tag="api", single=True)
+        result = {}
+        for elem in data.childNodes:
+            if elem.nodeType != elem.ELEMENT_NODE:
+                continue
+            result[elem.nodeName] = {}
+            for k, v in elem.attributes.items():
+                try:
+                    result[elem.nodeName][k] = float(v)
+                except Exception:
+                    result[elem.nodeName][k] = v
+        return result
+
+ +
+ +

Returns the API capabilities as a dict:

+ +
#!python
+{
+    'area': {
+        'maximum': area in square degrees that can be queried,
+    },
+    'changesets': {
+        'maximum_elements': number of elements per changeset,
+    },
+    'status': {
+        'api': online|readonly|offline,
+        'database': online|readonly|offline,
+        'gpx': online|readonly|offline,
+    },
+    'timeout': {
+        'seconds': timeout in seconds for API calls,
+    },
+    'tracepoints': {
+        'per_page': maximum number of points in a GPX track,
+    },
+    'version': {
+        'maximum': maximum version of API this server supports,
+        'minimum': minimum version of API this server supports,
+    },
+    'waynodes': {
+        'maximum': maximum number of nodes that a way may contain,
+    },
+}
+
+ +

The capabilities can be used by a client to +gain insights of the server in use.

+
+ + +
+
+
#   + + + def + NodeGet(self, NodeId, NodeVersion=-1): +
+ +
+ View Source +
    def NodeGet(self, NodeId, NodeVersion=-1):
+        """
+        Returns node with `NodeId` as a dict:
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': {},
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'timestamp': timestamp of last change,
+                'visible': True|False
+            }
+
+        If `NodeVersion` is supplied, this specific version is returned,
+        otherwise the latest version is returned.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/node/%s" % (NodeId)
+        if NodeVersion != -1:
+            uri += "/%s" % (NodeVersion)
+        data = self._get(uri)
+        data = self._OsmResponseToDom(data, tag="node", single=True)
+        return self._DomParseNode(data)
+
+ +
+ +

Returns node with NodeId as a dict:

+ +
#!python
+{
+    'id': id of node,
+    'lat': latitude of node,
+    'lon': longitude of node,
+    'tag': {},
+    'changeset': id of changeset of last change,
+    'version': version number of node,
+    'user': username of user that made the last change,
+    'uid': id of user that made the last change,
+    'timestamp': timestamp of last change,
+    'visible': True|False
+}
+
+ +

If NodeVersion is supplied, this specific version is returned, +otherwise the latest version is returned.

+ +

If the requested element has been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + NodeCreate(self, NodeData): +
+ +
+ View Source +
    def NodeCreate(self, NodeData):
+        """
+        Creates a node based on the supplied `NodeData` dict:
+
+            #!python
+            {
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': {},
+            }
+
+        Returns updated `NodeData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If the supplied information contain an existing node,
+        `OsmApi.OsmTypeAlreadyExistsError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("create", "node", NodeData)
+
+ +
+ +

Creates a node based on the supplied NodeData dict:

+ +
#!python
+{
+    'lat': latitude of node,
+    'lon': longitude of node,
+    'tag': {},
+}
+
+ +

Returns updated NodeData (without timestamp):

+ +
#!python
+{
+    'id': id of node,
+    'lat': latitude of node,
+    'lon': longitude of node,
+    'tag': dict of tags,
+    'changeset': id of changeset of last change,
+    'version': version number of node,
+    'user': username of last change,
+    'uid': id of user of last change,
+    'visible': True|False
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If the supplied information contain an existing node, +OsmApi.OsmTypeAlreadyExistsError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + NodeUpdate(self, NodeData): +
+ +
+ View Source +
    def NodeUpdate(self, NodeData):
+        """
+        Updates node with the supplied `NodeData` dict:
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': {},
+                'version': version number of node,
+            }
+
+        Returns updated `NodeData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("modify", "node", NodeData)
+
+ +
+ +

Updates node with the supplied NodeData dict:

+ +
#!python
+{
+    'id': id of node,
+    'lat': latitude of node,
+    'lon': longitude of node,
+    'tag': {},
+    'version': version number of node,
+}
+
+ +

Returns updated NodeData (without timestamp):

+ +
#!python
+{
+    'id': id of node,
+    'lat': latitude of node,
+    'lon': longitude of node,
+    'tag': dict of tags,
+    'changeset': id of changeset of last change,
+    'version': version number of node,
+    'user': username of last change,
+    'uid': id of user of last change,
+    'visible': True|False
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + NodeDelete(self, NodeData): +
+ +
+ View Source +
    def NodeDelete(self, NodeData):
+        """
+        Delete node with `NodeData`:
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'version': version number of node,
+            }
+
+        Returns updated `NodeData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'lat': latitude of node,
+                'lon': longitude of node,
+                'tag': dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of node,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+
+        If the requested element has already been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        return self._do("delete", "node", NodeData)
+
+ +
+ +

Delete node with NodeData:

+ +
#!python
+{
+    'id': id of node,
+    'lat': latitude of node,
+    'lon': longitude of node,
+    'tag': dict of tags,
+    'version': version number of node,
+}
+
+ +

Returns updated NodeData (without timestamp):

+ +
#!python
+{
+    'id': id of node,
+    'lat': latitude of node,
+    'lon': longitude of node,
+    'tag': dict of tags,
+    'changeset': id of changeset of last change,
+    'version': version number of node,
+    'user': username of last change,
+    'uid': id of user of last change,
+    'visible': True|False
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+ +

If the requested element has already been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + NodeHistory(self, NodeId): +
+ +
+ View Source +
    def NodeHistory(self, NodeId):
+        """
+        Returns dict with version as key:
+
+            #!python
+            {
+                '1': dict of NodeData,
+                '2': dict of NodeData,
+                ...
+            }
+
+        `NodeId` is the unique identifier of a node.
+        """
+        uri = "/api/0.6/node/%s/history" % NodeId
+        data = self._get(uri)
+        nodes = self._OsmResponseToDom(data, tag="node")
+        result = {}
+        for node in nodes:
+            data = self._DomParseNode(node)
+            result[data["version"]] = data
+        return result
+
+ +
+ +

Returns dict with version as key:

+ +
#!python
+{
+    '1': dict of NodeData,
+    '2': dict of NodeData,
+    ...
+}
+
+ +

NodeId is the unique identifier of a node.

+
+ + +
+
+
#   + + + def + NodeWays(self, NodeId): +
+ +
+ View Source +
    def NodeWays(self, NodeId):
+        """
+        Returns a list of dicts of `WayData` containing node `NodeId`:
+
+            #!python
+            [
+                {
+                    'id': id of Way,
+                    'nd': [] list of NodeIds in this way
+                    'tag': {} dict of tags,
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `NodeId` is a unique identifier for a node.
+        """
+        uri = "/api/0.6/node/%d/ways" % NodeId
+        data = self._get(uri)
+        ways = self._OsmResponseToDom(data, tag="way", allow_empty=True)
+        result = []
+        for way in ways:
+            data = self._DomParseWay(way)
+            result.append(data)
+        return result
+
+ +
+ +

Returns a list of dicts of WayData containing node NodeId:

+ +
#!python
+[
+    {
+        'id': id of Way,
+        'nd': [] list of NodeIds in this way
+        'tag': {} dict of tags,
+        'changeset': id of changeset of last change,
+        'version': version number of Way,
+        'user': username of user that made the last change,
+        'uid': id of user that made the last change,
+        'visible': True|False
+    },
+    {
+        ...
+    },
+]
+
+ +

The NodeId is a unique identifier for a node.

+
+ + +
+
+
#   + + + def + NodeRelations(self, NodeId): +
+ +
+ View Source +
    def NodeRelations(self, NodeId):
+        """
+        Returns a list of dicts of `RelationData` containing node `NodeId`:
+
+            #!python
+            [
+                {
+                    'id': id of Relation,
+                    'member': [
+                        {
+                            'ref': ID of referenced element,
+                            'role': optional description of role in relation
+                            'type': node|way|relation
+                        },
+                        {
+                            ...
+                        }
+                    ]
+                    'tag': {},
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `NodeId` is a unique identifier for a node.
+        """
+        uri = "/api/0.6/node/%d/relations" % NodeId
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation", allow_empty=True)
+        result = []
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result.append(data)
+        return result
+
+ +
+ +

Returns a list of dicts of RelationData containing node NodeId:

+ +
#!python
+[
+    {
+        'id': id of Relation,
+        'member': [
+            {
+                'ref': ID of referenced element,
+                'role': optional description of role in relation
+                'type': node|way|relation
+            },
+            {
+                ...
+            }
+        ]
+        'tag': {},
+        'changeset': id of changeset of last change,
+        'version': version number of Way,
+        'user': username of user that made the last change,
+        'uid': id of user that made the last change,
+        'visible': True|False
+    },
+    {
+        ...
+    },
+]
+
+ +

The NodeId is a unique identifier for a node.

+
+ + +
+
+
#   + + + def + NodesGet(self, NodeIdList): +
+ +
+ View Source +
    def NodesGet(self, NodeIdList):
+        """
+        Returns dict with the id of the Node as a key
+        for each node in `NodeIdList`:
+
+            #!python
+            {
+                '1234': dict of NodeData,
+                '5678': dict of NodeData,
+                ...
+            }
+
+        `NodeIdList` is a list containing unique identifiers
+        for multiple nodes.
+        """
+        node_list = ",".join([str(x) for x in NodeIdList])
+        uri = "/api/0.6/nodes?nodes=%s" % node_list
+        data = self._get(uri)
+        nodes = self._OsmResponseToDom(data, tag="node")
+        result = {}
+        for node in nodes:
+            data = self._DomParseNode(node)
+            result[data["id"]] = data
+        return result
+
+ +
+ +

Returns dict with the id of the Node as a key +for each node in NodeIdList:

+ +
#!python
+{
+    '1234': dict of NodeData,
+    '5678': dict of NodeData,
+    ...
+}
+
+ +

NodeIdList is a list containing unique identifiers +for multiple nodes.

+
+ + +
+
+
#   + + + def + WayGet(self, WayId, WayVersion=-1): +
+ +
+ View Source +
    def WayGet(self, WayId, WayVersion=-1):
+        """
+        Returns way with `WayId` as a dict:
+
+            #!python
+            {
+                'id': id of way,
+                'tag': {} tags of this way,
+                'nd': [] list of nodes belonging to this way
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'timestamp': timestamp of last change,
+                'visible': True|False
+            }
+
+        If `WayVersion` is supplied, this specific version is returned,
+        otherwise the latest version is returned.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/way/%s" % (WayId)
+        if WayVersion != -1:
+            uri += "/%s" % (WayVersion)
+        data = self._get(uri)
+        way = self._OsmResponseToDom(data, tag="way", single=True)
+        return self._DomParseWay(way)
+
+ +
+ +

Returns way with WayId as a dict:

+ +
#!python
+{
+    'id': id of way,
+    'tag': {} tags of this way,
+    'nd': [] list of nodes belonging to this way
+    'changeset': id of changeset of last change,
+    'version': version number of way,
+    'user': username of user that made the last change,
+    'uid': id of user that made the last change,
+    'timestamp': timestamp of last change,
+    'visible': True|False
+}
+
+ +

If WayVersion is supplied, this specific version is returned, +otherwise the latest version is returned.

+ +

If the requested element has been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + WayCreate(self, WayData): +
+ +
+ View Source +
    def WayCreate(self, WayData):
+        """
+        Creates a way based on the supplied `WayData` dict:
+
+            #!python
+            {
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+            }
+
+        Returns updated `WayData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the supplied information contain an existing node,
+        `OsmApi.OsmTypeAlreadyExistsError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("create", "way", WayData)
+
+ +
+ +

Creates a way based on the supplied WayData dict:

+ +
#!python
+{
+    'nd': [] list of nodes,
+    'tag': {} dict of tags,
+}
+
+ +

Returns updated WayData (without timestamp):

+ +
#!python
+{
+    'id': id of node,
+    'nd': [] list of nodes,
+    'tag': {} dict of tags,
+    'changeset': id of changeset of last change,
+    'version': version number of way,
+    'user': username of last change,
+    'uid': id of user of last change,
+    'visible': True|False
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If the supplied information contain an existing node, +OsmApi.OsmTypeAlreadyExistsError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + WayUpdate(self, WayData): +
+ +
+ View Source +
    def WayUpdate(self, WayData):
+        """
+        Updates way with the supplied `WayData` dict:
+
+            #!python
+            {
+                'id': id of way,
+                'nd': [] list of nodes,
+                'tag': {},
+                'version': version number of way,
+            }
+
+        Returns updated `WayData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("modify", "way", WayData)
+
+ +
+ +

Updates way with the supplied WayData dict:

+ +
#!python
+{
+    'id': id of way,
+    'nd': [] list of nodes,
+    'tag': {},
+    'version': version number of way,
+}
+
+ +

Returns updated WayData (without timestamp):

+ +
#!python
+{
+    'id': id of node,
+    'nd': [] list of nodes,
+    'tag': {} dict of tags,
+    'changeset': id of changeset of last change,
+    'version': version number of way,
+    'user': username of last change,
+    'uid': id of user of last change,
+    'visible': True|False
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + WayDelete(self, WayData): +
+ +
+ View Source +
    def WayDelete(self, WayData):
+        """
+        Delete way with `WayData`:
+
+            #!python
+            {
+                'id': id of way,
+                'nd': [] list of nodes,
+                'tag': dict of tags,
+                'version': version number of way,
+            }
+
+        Returns updated `WayData` (without timestamp):
+
+            #!python
+            {
+                'id': id of node,
+                'nd': [] list of nodes,
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of way,
+                'user': username of last change,
+                'uid': id of user of last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+
+        If the requested element has already been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        return self._do("delete", "way", WayData)
+
+ +
+ +

Delete way with WayData:

+ +
#!python
+{
+    'id': id of way,
+    'nd': [] list of nodes,
+    'tag': dict of tags,
+    'version': version number of way,
+}
+
+ +

Returns updated WayData (without timestamp):

+ +
#!python
+{
+    'id': id of node,
+    'nd': [] list of nodes,
+    'tag': {} dict of tags,
+    'changeset': id of changeset of last change,
+    'version': version number of way,
+    'user': username of last change,
+    'uid': id of user of last change,
+    'visible': True|False
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+ +

If the requested element has already been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + WayHistory(self, WayId): +
+ +
+ View Source +
    def WayHistory(self, WayId):
+        """
+        Returns dict with version as key:
+
+            #!python
+            {
+                '1': dict of WayData,
+                '2': dict of WayData,
+                ...
+            }
+
+        `WayId` is the unique identifier of a way.
+        """
+        uri = "/api/0.6/way/%s/history" % (WayId)
+        data = self._get(uri)
+        ways = self._OsmResponseToDom(data, tag="way")
+        result = {}
+        for way in ways:
+            data = self._DomParseWay(way)
+            result[data["version"]] = data
+        return result
+
+ +
+ +

Returns dict with version as key:

+ +
#!python
+{
+    '1': dict of WayData,
+    '2': dict of WayData,
+    ...
+}
+
+ +

WayId is the unique identifier of a way.

+
+ + +
+
+
#   + + + def + WayRelations(self, WayId): +
+ +
+ View Source +
    def WayRelations(self, WayId):
+        """
+        Returns a list of dicts of `RelationData` containing way `WayId`:
+
+            #!python
+            [
+                {
+                    'id': id of Relation,
+                    'member': [
+                        {
+                            'ref': ID of referenced element,
+                            'role': optional description of role in relation
+                            'type': node|way|relation
+                        },
+                        {
+                            ...
+                        }
+                    ]
+                    'tag': {} dict of tags,
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `WayId` is a unique identifier for a way.
+        """
+        uri = "/api/0.6/way/%d/relations" % WayId
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation", allow_empty=True)
+        result = []
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result.append(data)
+        return result
+
+ +
+ +

Returns a list of dicts of RelationData containing way WayId:

+ +
#!python
+[
+    {
+        'id': id of Relation,
+        'member': [
+            {
+                'ref': ID of referenced element,
+                'role': optional description of role in relation
+                'type': node|way|relation
+            },
+            {
+                ...
+            }
+        ]
+        'tag': {} dict of tags,
+        'changeset': id of changeset of last change,
+        'version': version number of Way,
+        'user': username of user that made the last change,
+        'uid': id of user that made the last change,
+        'visible': True|False
+    },
+    {
+        ...
+    },
+]
+
+ +

The WayId is a unique identifier for a way.

+
+ + +
+
+
#   + + + def + WayFull(self, WayId): +
+ +
+ View Source +
    def WayFull(self, WayId):
+        """
+        Returns the full data for way `WayId` as list of dicts:
+
+            #!python
+            [
+                {
+                    'type': node|way|relation,
+                    'data': {} data dict for node|way|relation
+                },
+                { ... }
+            ]
+
+        The `WayId` is a unique identifier for a way.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/way/%s/full" % (WayId)
+        data = self._get(uri)
+        return self.ParseOsm(data)
+
+ +
+ +

Returns the full data for way WayId as list of dicts:

+ +
#!python
+[
+    {
+        'type': node|way|relation,
+        'data': {} data dict for node|way|relation
+    },
+    { ... }
+]
+
+ +

The WayId is a unique identifier for a way.

+ +

If the requested element has been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + WaysGet(self, WayIdList): +
+ +
+ View Source +
    def WaysGet(self, WayIdList):
+        """
+        Returns dict with the id of the way as a key for
+        each way in `WayIdList`:
+
+            #!python
+            {
+                '1234': dict of WayData,
+                '5678': dict of WayData,
+                ...
+            }
+
+        `WayIdList` is a list containing unique identifiers for multiple ways.
+        """
+        way_list = ",".join([str(x) for x in WayIdList])
+        uri = "/api/0.6/ways?ways=%s" % way_list
+        data = self._get(uri)
+        ways = self._OsmResponseToDom(data, tag="way")
+        result = {}
+        for way in ways:
+            data = self._DomParseWay(way)
+            result[data["id"]] = data
+        return result
+
+ +
+ +

Returns dict with the id of the way as a key for +each way in WayIdList:

+ +
#!python
+{
+    '1234': dict of WayData,
+    '5678': dict of WayData,
+    ...
+}
+
+ +

WayIdList is a list containing unique identifiers for multiple ways.

+
+ + +
+
+
#   + + + def + RelationGet(self, RelationId, RelationVersion=-1): +
+ +
+ View Source +
    def RelationGet(self, RelationId, RelationVersion=-1):
+        """
+        Returns relation with `RelationId` as a dict:
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'timestamp': timestamp of last change,
+                'visible': True|False
+            }
+
+        If `RelationVersion` is supplied, this specific version is returned,
+        otherwise the latest version is returned.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/relation/%s" % (RelationId)
+        if RelationVersion != -1:
+            uri += "/%s" % (RelationVersion)
+        data = self._get(uri)
+        relation = self._OsmResponseToDom(data, tag="relation", single=True)
+        return self._DomParseRelation(relation)
+
+ +
+ +

Returns relation with RelationId as a dict:

+ +
#!python
+{
+    'id': id of Relation,
+    'member': [
+        {
+            'ref': ID of referenced element,
+            'role': optional description of role in relation
+            'type': node|way|relation
+        },
+        {
+            ...
+        }
+    ]
+    'tag': {} dict of tags,
+    'changeset': id of changeset of last change,
+    'version': version number of Relation,
+    'user': username of user that made the last change,
+    'uid': id of user that made the last change,
+    'timestamp': timestamp of last change,
+    'visible': True|False
+}
+
+ +

If RelationVersion is supplied, this specific version is returned, +otherwise the latest version is returned.

+ +

If the requested element has been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + RelationCreate(self, RelationData): +
+ +
+ View Source +
    def RelationCreate(self, RelationData):
+        """
+        Creates a relation based on the supplied `RelationData` dict:
+
+            #!python
+            {
+                'member': [] list of members,
+                'tag': {} dict of tags,
+            }
+
+        Returns updated `RelationData` (without timestamp):
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the supplied information contain an existing node,
+        `OsmApi.OsmTypeAlreadyExistsError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("create", "relation", RelationData)
+
+ +
+ +

Creates a relation based on the supplied RelationData dict:

+ +
#!python
+{
+    'member': [] list of members,
+    'tag': {} dict of tags,
+}
+
+ +

Returns updated RelationData (without timestamp):

+ +
#!python
+{
+    'id': id of Relation,
+    'member': [
+        {
+            'ref': ID of referenced element,
+            'role': optional description of role in relation
+            'type': node|way|relation
+        },
+        {
+            ...
+        }
+    ]
+    'tag': {} dict of tags,
+    'changeset': id of changeset of last change,
+    'version': version number of Relation,
+    'user': username of user that made the last change,
+    'uid': id of user that made the last change,
+    'visible': True|False
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If the supplied information contain an existing node, +OsmApi.OsmTypeAlreadyExistsError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + RelationUpdate(self, RelationData): +
+ +
+ View Source +
    def RelationUpdate(self, RelationData):
+        """
+        Updates relation with the supplied `RelationData` dict:
+
+            #!python
+            {
+                'id': id of relation,
+                'member': [] list of member dicts,
+                'tag': {},
+                'version': version number of relation,
+            }
+
+        Returns updated `RelationData` (without timestamp):
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        return self._do("modify", "relation", RelationData)
+
+ +
+ +

Updates relation with the supplied RelationData dict:

+ +
#!python
+{
+    'id': id of relation,
+    'member': [] list of member dicts,
+    'tag': {},
+    'version': version number of relation,
+}
+
+ +

Returns updated RelationData (without timestamp):

+ +
#!python
+{
+    'id': id of Relation,
+    'member': [
+        {
+            'ref': ID of referenced element,
+            'role': optional description of role in relation
+            'type': node|way|relation
+        },
+        {
+            ...
+        }
+    ]
+    'tag': {} dict of tags
+    'changeset': id of changeset of last change,
+    'version': version number of Relation,
+    'user': username of user that made the last change,
+    'uid': id of user that made the last change,
+    'visible': True|False
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + RelationDelete(self, RelationData): +
+ +
+ View Source +
    def RelationDelete(self, RelationData):
+        """
+        Delete relation with `RelationData` dict:
+
+            #!python
+            {
+                'id': id of relation,
+                'member': [] list of member dicts,
+                'tag': {},
+                'version': version number of relation,
+            }
+
+        Returns updated `RelationData` (without timestamp):
+
+            #!python
+            {
+                'id': id of Relation,
+                'member': [
+                    {
+                        'ref': ID of referenced element,
+                        'role': optional description of role in relation
+                        'type': node|way|relation
+                    },
+                    {
+                        ...
+                    }
+                ]
+                'tag': {} dict of tags,
+                'changeset': id of changeset of last change,
+                'version': version number of Relation,
+                'user': username of user that made the last change,
+                'uid': id of user that made the last change,
+                'visible': True|False
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+
+        If the requested element has already been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        return self._do("delete", "relation", RelationData)
+
+ +
+ +

Delete relation with RelationData dict:

+ +
#!python
+{
+    'id': id of relation,
+    'member': [] list of member dicts,
+    'tag': {},
+    'version': version number of relation,
+}
+
+ +

Returns updated RelationData (without timestamp):

+ +
#!python
+{
+    'id': id of Relation,
+    'member': [
+        {
+            'ref': ID of referenced element,
+            'role': optional description of role in relation
+            'type': node|way|relation
+        },
+        {
+            ...
+        }
+    ]
+    'tag': {} dict of tags,
+    'changeset': id of changeset of last change,
+    'version': version number of Relation,
+    'user': username of user that made the last change,
+    'uid': id of user that made the last change,
+    'visible': True|False
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+ +

If the requested element has already been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + RelationHistory(self, RelationId): +
+ +
+ View Source +
    def RelationHistory(self, RelationId):
+        """
+        Returns dict with version as key:
+
+            #!python
+            {
+                '1': dict of RelationData,
+                '2': dict of RelationData,
+                ...
+            }
+
+        `RelationId` is the unique identifier of a relation.
+        """
+        uri = "/api/0.6/relation/%s/history" % (RelationId)
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation")
+        result = {}
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result[data["version"]] = data
+        return result
+
+ +
+ +

Returns dict with version as key:

+ +
#!python
+{
+    '1': dict of RelationData,
+    '2': dict of RelationData,
+    ...
+}
+
+ +

RelationId is the unique identifier of a relation.

+
+ + +
+
+
#   + + + def + RelationRelations(self, RelationId): +
+ +
+ View Source +
    def RelationRelations(self, RelationId):
+        """
+        Returns a list of dicts of `RelationData`
+        containing relation `RelationId`:
+
+            #!python
+            [
+                {
+                    'id': id of Relation,
+                    'member': [
+                        {
+                            'ref': ID of referenced element,
+                            'role': optional description of role in relation
+                            'type': node|way|relation
+                        },
+                        {
+                            ...
+                        }
+                    ]
+                    'tag': {} dict of tags,
+                    'changeset': id of changeset of last change,
+                    'version': version number of Way,
+                    'user': username of user that made the last change,
+                    'uid': id of user that made the last change,
+                    'visible': True|False
+                },
+                {
+                    ...
+                },
+            ]
+
+        The `RelationId` is a unique identifier for a relation.
+        """
+        uri = "/api/0.6/relation/%d/relations" % RelationId
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation", allow_empty=True)
+        result = []
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result.append(data)
+        return result
+
+ +
+ +

Returns a list of dicts of RelationData +containing relation RelationId:

+ +
#!python
+[
+    {
+        'id': id of Relation,
+        'member': [
+            {
+                'ref': ID of referenced element,
+                'role': optional description of role in relation
+                'type': node|way|relation
+            },
+            {
+                ...
+            }
+        ]
+        'tag': {} dict of tags,
+        'changeset': id of changeset of last change,
+        'version': version number of Way,
+        'user': username of user that made the last change,
+        'uid': id of user that made the last change,
+        'visible': True|False
+    },
+    {
+        ...
+    },
+]
+
+ +

The RelationId is a unique identifier for a relation.

+
+ + +
+
+
#   + + + def + RelationFullRecur(self, RelationId): +
+ +
+ View Source +
    def RelationFullRecur(self, RelationId):
+        """
+        Returns the full data (all levels) for relation
+        `RelationId` as list of dicts:
+
+            #!python
+            [
+                {
+                    'type': node|way|relation,
+                    'data': {} data dict for node|way|relation
+                },
+                { ... }
+            ]
+
+        The `RelationId` is a unique identifier for a way.
+
+        This function is useful for relations containing other relations.
+
+        If you don't need all levels, use `OsmApi.RelationFull`
+        instead, which return only 2 levels.
+
+        If any relation (on any level) has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        data = []
+        todo = [RelationId]
+        done = []
+        while todo:
+            rid = todo.pop(0)
+            done.append(rid)
+            temp = self.RelationFull(rid)
+            for item in temp:
+                if item["type"] != "relation":
+                    continue
+                if item["data"]["id"] in done:
+                    continue
+                todo.append(item["data"]["id"])
+            data += temp
+        return data
+
+ +
+ +

Returns the full data (all levels) for relation +RelationId as list of dicts:

+ +
#!python
+[
+    {
+        'type': node|way|relation,
+        'data': {} data dict for node|way|relation
+    },
+    { ... }
+]
+
+ +

The RelationId is a unique identifier for a way.

+ +

This function is useful for relations containing other relations.

+ +

If you don't need all levels, use OsmApi.RelationFull +instead, which return only 2 levels.

+ +

If any relation (on any level) has been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + RelationFull(self, RelationId): +
+ +
+ View Source +
    def RelationFull(self, RelationId):
+        """
+        Returns the full data (two levels) for relation
+        `RelationId` as list of dicts:
+
+            #!python
+            [
+                {
+                    'type': node|way|relation,
+                    'data': {} data dict for node|way|relation
+                },
+                { ... }
+            ]
+
+        The `RelationId` is a unique identifier for a way.
+
+        If you need all levels, use `OsmApi.RelationFullRecur`.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        uri = "/api/0.6/relation/%s/full" % (RelationId)
+        data = self._get(uri)
+        return self.ParseOsm(data)
+
+ +
+ +

Returns the full data (two levels) for relation +RelationId as list of dicts:

+ +
#!python
+[
+    {
+        'type': node|way|relation,
+        'data': {} data dict for node|way|relation
+    },
+    { ... }
+]
+
+ +

The RelationId is a unique identifier for a way.

+ +

If you need all levels, use OsmApi.RelationFullRecur.

+ +

If the requested element has been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + RelationsGet(self, RelationIdList): +
+ +
+ View Source +
    def RelationsGet(self, RelationIdList):
+        """
+        Returns dict with the id of the relation as a key
+        for each relation in `RelationIdList`:
+
+            #!python
+            {
+                '1234': dict of RelationData,
+                '5678': dict of RelationData,
+                ...
+            }
+
+        `RelationIdList` is a list containing unique identifiers
+        for multiple relations.
+        """
+        relation_list = ",".join([str(x) for x in RelationIdList])
+        uri = "/api/0.6/relations?relations=%s" % relation_list
+        data = self._get(uri)
+        relations = self._OsmResponseToDom(data, tag="relation")
+        result = {}
+        for relation in relations:
+            data = self._DomParseRelation(relation)
+            result[data["id"]] = data
+        return result
+
+ +
+ +

Returns dict with the id of the relation as a key +for each relation in RelationIdList:

+ +
#!python
+{
+    '1234': dict of RelationData,
+    '5678': dict of RelationData,
+    ...
+}
+
+ +

RelationIdList is a list containing unique identifiers +for multiple relations.

+
+ + +
+
+
#   + + + def + ChangesetGet(self, ChangesetId, include_discussion=False): +
+ +
+ View Source +
    def ChangesetGet(self, ChangesetId, include_discussion=False):
+        """
+        Returns changeset with `ChangesetId` as a dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'discussion': [] list of comment dict (-> `include_discussion`)
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+        `ChangesetId` is the unique identifier of a changeset.
+
+        If `include_discussion` is set to `True` the changeset discussion
+        will be available in the result.
+        """
+        path = "/api/0.6/changeset/%s" % (ChangesetId)
+        if (include_discussion):
+            path += "?include_discussion=true"
+        data = self._get(path)
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+ +
+ +

Returns changeset with ChangesetId as a dict:

+ +
#!python
+{
+    'id': id of Changeset,
+    'open': True|False, wheter or not this changeset is open
+    'tag': {} dict of tags,
+    'created_at': timestamp of creation of this changeset
+    'closed_at': timestamp when changeset was closed
+    'comments_count': amount of comments
+    'discussion': [] list of comment dict (-> `include_discussion`)
+    'max_lon': maximum longitude of changes in this changeset
+    'max_lat': maximum latitude of changes in this changeset
+    'min_lon': minimum longitude of changes in this changeset
+    'min_lat': minimum longitude of changes in this changeset
+    'user': username of user that created this changeset,
+    'uid': id of user that created this changeset,
+}
+
+ +

ChangesetId is the unique identifier of a changeset.

+ +

If include_discussion is set to True the changeset discussion +will be available in the result.

+
+ + +
+
+
#   + + + def + ChangesetUpdate(self, ChangesetTags={}): +
+ +
+ View Source +
    def ChangesetUpdate(self, ChangesetTags={}):
+        """
+        Updates current changeset with `ChangesetTags`.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        if not self._CurrentChangesetId:
+            raise NoChangesetOpenError("No changeset currently opened")
+        if "created_by" not in ChangesetTags:
+            ChangesetTags["created_by"] = self._created_by
+        try:
+            self._put(
+                "/api/0.6/changeset/%s" % (self._CurrentChangesetId),
+                self._XmlBuild("changeset", {"tag": ChangesetTags}),
+                return_value=False
+            )
+        except ApiError as e:
+            if e.status == 409:
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        return self._CurrentChangesetId
+
+ +
+ +

Updates current changeset with ChangesetTags.

+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + ChangesetCreate(self, ChangesetTags={}): +
+ +
+ View Source +
    def ChangesetCreate(self, ChangesetTags={}):
+        """
+        Opens a changeset.
+
+        If `ChangesetTags` are given, this tags are applied (key/value).
+
+        Returns `ChangesetId`
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+        """
+        if self._CurrentChangesetId:
+            raise ChangesetAlreadyOpenError("Changeset already opened")
+        if "created_by" not in ChangesetTags:
+            ChangesetTags["created_by"] = self._created_by
+        result = self._put(
+            "/api/0.6/changeset/create",
+            self._XmlBuild("changeset", {"tag": ChangesetTags})
+        )
+        self._CurrentChangesetId = int(result)
+        return self._CurrentChangesetId
+
+ +
+ +

Opens a changeset.

+ +

If ChangesetTags are given, this tags are applied (key/value).

+ +

Returns ChangesetId

+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+
+ + +
+
+
#   + + + def + ChangesetClose(self): +
+ +
+ View Source +
    def ChangesetClose(self):
+        """
+        Closes current changeset.
+
+        Returns `ChangesetId`.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        if not self._CurrentChangesetId:
+            raise NoChangesetOpenError("No changeset currently opened")
+        try:
+            self._put(
+                "/api/0.6/changeset/%s/close" % (self._CurrentChangesetId),
+                "",
+                return_value=False
+            )
+            CurrentChangesetId = self._CurrentChangesetId
+            self._CurrentChangesetId = 0
+        except ApiError as e:
+            if e.status == 409:
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        return CurrentChangesetId
+
+ +
+ +

Closes current changeset.

+ +

Returns ChangesetId.

+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + ChangesetUpload(self, ChangesData): +
+ +
+ View Source +
    def ChangesetUpload(self, ChangesData):
+        """
+        Upload data with the `ChangesData` list of dicts:
+
+            #!python
+            {
+                type: node|way|relation,
+                action: create|delete|modify,
+                data: {}
+            }
+
+        Returns list with updated ids.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        data = ""
+        data += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+        data += "<osmChange version=\"0.6\" generator=\""
+        data += self._created_by + "\">\n"
+        for change in ChangesData:
+            data += "<" + change["action"] + ">\n"
+            change["data"]["changeset"] = self._CurrentChangesetId
+            data += self._XmlBuild(
+                change["type"],
+                change["data"],
+                False
+            ).decode("utf-8")
+            data += "</" + change["action"] + ">\n"
+        data += "</osmChange>"
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/upload" % (self._CurrentChangesetId),
+                data.encode("utf-8")
+            )
+        except ApiError as e:
+            if e.status == 409 and re.search(r"The changeset .* was closed at .*", e.payload):
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        try:
+            data = xml.dom.minidom.parseString(data)
+            data = data.getElementsByTagName("diffResult")[0]
+            data = [x for x in data.childNodes if x.nodeType == x.ELEMENT_NODE]
+        except (xml.parsers.expat.ExpatError, IndexError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        for i in range(len(ChangesData)):
+            if ChangesData[i]["action"] == "delete":
+                ChangesData[i]["data"].pop("version")
+            else:
+                new_id = int(data[i].getAttribute("new_id"))
+                ChangesData[i]["data"]["id"] = new_id
+                new_version = int(data[i].getAttribute("new_version"))
+                ChangesData[i]["data"]["version"] = new_version
+        return ChangesData
+
+ +
+ +

Upload data with the ChangesData list of dicts:

+ +
#!python
+{
+    type: node|way|relation,
+    action: create|delete|modify,
+    data: {}
+}
+
+ +

Returns list with updated ids.

+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + ChangesetDownload(self, ChangesetId): +
+ +
+ View Source +
    def ChangesetDownload(self, ChangesetId):
+        """
+        Download data from changeset `ChangesetId`.
+
+        Returns list of dict:
+
+            #!python
+            {
+                'type': node|way|relation,
+                'action': create|delete|modify,
+                'data': {}
+            }
+        """
+        uri = "/api/0.6/changeset/%s/download" % (ChangesetId)
+        data = self._get(uri)
+        return self.ParseOsc(data)
+
+ +
+ +

Download data from changeset ChangesetId.

+ +

Returns list of dict:

+ +
#!python
+{
+    'type': node|way|relation,
+    'action': create|delete|modify,
+    'data': {}
+}
+
+
+ + +
+
+
#   + + + def + ChangesetsGet( + self, + min_lon=None, + min_lat=None, + max_lon=None, + max_lat=None, + userid=None, + username=None, + closed_after=None, + created_before=None, + only_open=False, + only_closed=False +): +
+ +
+ View Source +
    def ChangesetsGet(  # noqa
+            self,
+            min_lon=None,
+            min_lat=None,
+            max_lon=None,
+            max_lat=None,
+            userid=None,
+            username=None,
+            closed_after=None,
+            created_before=None,
+            only_open=False,
+            only_closed=False):
+        """
+        Returns a dict with the id of the changeset as key
+        matching all criteria:
+
+            #!python
+            {
+                '1234': dict of ChangesetData,
+                '5678': dict of ChangesetData,
+                ...
+            }
+
+        All parameters are optional.
+        """
+
+        uri = "/api/0.6/changesets"
+        params = {}
+        if min_lon or min_lat or max_lon or max_lat:
+            params["bbox"] = ",".join(
+                [
+                    str(min_lon),
+                    str(min_lat),
+                    str(max_lon),
+                    str(max_lat)
+                ]
+            )
+        if userid:
+            params["user"] = userid
+        if username:
+            params["display_name"] = username
+        if closed_after and not created_before:
+            params["time"] = closed_after
+        if created_before:
+            if not closed_after:
+                closed_after = "1970-01-01T00:00:00Z"
+            params["time"] = "%s,%s" % (closed_after, created_before)
+        if only_open:
+            params["open"] = 1
+        if only_closed:
+            params["closed"] = 1
+
+        if params:
+            uri += "?" + urllib.parse.urlencode(params)
+
+        data = self._get(uri)
+        changesets = self._OsmResponseToDom(data, tag="changeset")
+        result = {}
+        for curChangeset in changesets:
+            tmpCS = self._DomParseChangeset(curChangeset)
+            result[tmpCS["id"]] = tmpCS
+        return result
+
+ +
+ +

Returns a dict with the id of the changeset as key +matching all criteria:

+ +
#!python
+{
+    '1234': dict of ChangesetData,
+    '5678': dict of ChangesetData,
+    ...
+}
+
+ +

All parameters are optional.

+
+ + +
+
+
#   + + + def + ChangesetComment(self, ChangesetId, comment): +
+ +
+ View Source +
    def ChangesetComment(self, ChangesetId, comment):
+        """
+        Adds a comment to the changeset `ChangesetId`
+
+        `comment` should be a string.
+
+        Returns the updated `ChangesetData` dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the changeset is already closed,
+        `OsmApi.ChangesetClosedApiError` is raised.
+        """
+        params = urllib.parse.urlencode({'text': comment})
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/comment" % (ChangesetId),
+                params
+            )
+        except ApiError as e:
+            if e.status == 409:
+                raise ChangesetClosedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+ +
+ +

Adds a comment to the changeset ChangesetId

+ +

comment should be a string.

+ +

Returns the updated ChangesetData dict:

+ +
#!python
+{
+    'id': id of Changeset,
+    'open': True|False, wheter or not this changeset is open
+    'tag': {} dict of tags,
+    'created_at': timestamp of creation of this changeset
+    'closed_at': timestamp when changeset was closed
+    'comments_count': amount of comments
+    'max_lon': maximum longitude of changes in this changeset
+    'max_lat': maximum latitude of changes in this changeset
+    'min_lon': minimum longitude of changes in this changeset
+    'min_lat': minimum longitude of changes in this changeset
+    'user': username of user that created this changeset,
+    'uid': id of user that created this changeset,
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If the changeset is already closed, +OsmApi.ChangesetClosedApiError is raised.

+
+ + +
+
+
#   + + + def + ChangesetSubscribe(self, ChangesetId): +
+ +
+ View Source +
    def ChangesetSubscribe(self, ChangesetId):
+        """
+        Subcribe to the changeset discussion of changeset `ChangesetId`.
+
+        The user will be informed about new comments (i.e. receive an email).
+
+        Returns the updated `ChangesetData` dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+        """
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/subscribe" % (ChangesetId),
+                None
+            )
+        except ApiError as e:
+            if e.status == 409:
+                raise AlreadySubscribedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+ +
+ +

Subcribe to the changeset discussion of changeset ChangesetId.

+ +

The user will be informed about new comments (i.e. receive an email).

+ +

Returns the updated ChangesetData dict:

+ +
#!python
+{
+    'id': id of Changeset,
+    'open': True|False, wheter or not this changeset is open
+    'tag': {} dict of tags,
+    'created_at': timestamp of creation of this changeset
+    'closed_at': timestamp when changeset was closed
+    'comments_count': amount of comments
+    'max_lon': maximum longitude of changes in this changeset
+    'max_lat': maximum latitude of changes in this changeset
+    'min_lon': minimum longitude of changes in this changeset
+    'min_lat': minimum longitude of changes in this changeset
+    'user': username of user that created this changeset,
+    'uid': id of user that created this changeset,
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+
+ + +
+
+
#   + + + def + ChangesetUnsubscribe(self, ChangesetId): +
+ +
+ View Source +
    def ChangesetUnsubscribe(self, ChangesetId):
+        """
+        Subcribe to the changeset discussion of changeset `ChangesetId`.
+
+        The user will be informed about new comments (i.e. receive an email).
+
+        Returns the updated `ChangesetData` dict:
+
+            #!python
+            {
+                'id': id of Changeset,
+                'open': True|False, wheter or not this changeset is open
+                'tag': {} dict of tags,
+                'created_at': timestamp of creation of this changeset
+                'closed_at': timestamp when changeset was closed
+                'comments_count': amount of comments
+                'max_lon': maximum longitude of changes in this changeset
+                'max_lat': maximum latitude of changes in this changeset
+                'min_lon': minimum longitude of changes in this changeset
+                'min_lat': minimum longitude of changes in this changeset
+                'user': username of user that created this changeset,
+                'uid': id of user that created this changeset,
+            }
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+        """
+        try:
+            data = self._post(
+                "/api/0.6/changeset/%s/unsubscribe" % (ChangesetId),
+                None
+            )
+        except ApiError as e:
+            if e.status == 404:
+                raise NotSubscribedApiError(e.status, e.reason, e.payload)
+            else:
+                raise
+        changeset = self._OsmResponseToDom(data, tag="changeset", single=True)
+        return self._DomParseChangeset(changeset)
+
+ +
+ +

Subcribe to the changeset discussion of changeset ChangesetId.

+ +

The user will be informed about new comments (i.e. receive an email).

+ +

Returns the updated ChangesetData dict:

+ +
#!python
+{
+    'id': id of Changeset,
+    'open': True|False, wheter or not this changeset is open
+    'tag': {} dict of tags,
+    'created_at': timestamp of creation of this changeset
+    'closed_at': timestamp when changeset was closed
+    'comments_count': amount of comments
+    'max_lon': maximum longitude of changes in this changeset
+    'max_lat': maximum latitude of changes in this changeset
+    'min_lon': minimum longitude of changes in this changeset
+    'min_lat': minimum longitude of changes in this changeset
+    'user': username of user that created this changeset,
+    'uid': id of user that created this changeset,
+}
+
+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+
+ + +
+
+
#   + + + def + NotesGet(self, min_lon, min_lat, max_lon, max_lat, limit=100, closed=7): +
+ +
+ View Source +
    def NotesGet(
+            self,
+            min_lon,
+            min_lat,
+            max_lon,
+            max_lat,
+            limit=100,
+            closed=7):
+        """
+        Returns a list of dicts of notes in the specified bounding box:
+
+            #!python
+            [
+                {
+                    'id': integer,
+                    'action': opened|commented|closed,
+                    'status': open|closed
+                    'date_created': creation date
+                    'date_closed': closing data|None
+                    'uid': User ID|None
+                    'user': User name|None
+                    'comments': {}
+                },
+                { ... }
+            ]
+
+        The limit parameter defines how many results should be returned.
+
+        closed specifies the number of days a bug needs to be closed
+        to no longer be returned.
+        The value 0 means only open bugs are returned,
+        -1 means all bugs are returned.
+
+        All parameters are optional.
+        """
+        uri = (
+            "/api/0.6/notes?bbox=%f,%f,%f,%f&limit=%d&closed=%d"
+            % (min_lon, min_lat, max_lon, max_lat, limit, closed)
+        )
+        data = self._get(uri)
+        return self.ParseNotes(data)
+
+ +
+ +

Returns a list of dicts of notes in the specified bounding box:

+ +
#!python
+[
+    {
+        'id': integer,
+        'action': opened|commented|closed,
+        'status': open|closed
+        'date_created': creation date
+        'date_closed': closing data|None
+        'uid': User ID|None
+        'user': User name|None
+        'comments': {}
+    },
+    { ... }
+]
+
+ +

The limit parameter defines how many results should be returned.

+ +

closed specifies the number of days a bug needs to be closed +to no longer be returned. +The value 0 means only open bugs are returned, +-1 means all bugs are returned.

+ +

All parameters are optional.

+
+ + +
+
+
#   + + + def + NoteGet(self, id): +
+ +
+ View Source +
    def NoteGet(self, id):
+        """
+        Returns a note as dict:
+
+            #!python
+            {
+                'id': integer,
+                'action': opened|commented|closed,
+                'status': open|closed
+                'date_created': creation date
+                'date_closed': closing data|None
+                'uid': User ID|None
+                'user': User name|None
+                'comments': {}
+            }
+
+        `id` is the unique identifier of the note.
+        """
+        uri = "/api/0.6/notes/%s" % (id)
+        data = self._get(uri)
+        noteElement = self._OsmResponseToDom(data, tag="note", single=True)
+        return self._DomParseNote(noteElement)
+
+ +
+ +

Returns a note as dict:

+ +
#!python
+{
+    'id': integer,
+    'action': opened|commented|closed,
+    'status': open|closed
+    'date_created': creation date
+    'date_closed': closing data|None
+    'uid': User ID|None
+    'user': User name|None
+    'comments': {}
+}
+
+ +

id is the unique identifier of the note.

+
+ + +
+
+
#   + + + def + NoteCreate(self, NoteData): +
+ +
+ View Source +
    def NoteCreate(self, NoteData):
+        """
+        Creates a note.
+
+        Returns updated NoteData (without timestamp).
+        """
+        uri = "/api/0.6/notes"
+        uri += "?" + urllib.parse.urlencode(NoteData)
+        return self._NoteAction(uri)
+
+ +
+ +

Creates a note.

+ +

Returns updated NoteData (without timestamp).

+
+ + +
+
+
#   + + + def + NoteComment(self, NoteId, comment): +
+ +
+ View Source +
    def NoteComment(self, NoteId, comment):
+        """
+        Adds a new comment to a note.
+
+        Returns the updated note.
+        """
+        path = "/api/0.6/notes/%s/comment" % NoteId
+        return self._NoteAction(path, comment)
+
+ +
+ +

Adds a new comment to a note.

+ +

Returns the updated note.

+
+ + +
+
+
#   + + + def + NoteClose(self, NoteId, comment): +
+ +
+ View Source +
    def NoteClose(self, NoteId, comment):
+        """
+        Closes a note.
+
+        Returns the updated note.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+        """
+        path = "/api/0.6/notes/%s/close" % NoteId
+        return self._NoteAction(path, comment, optionalAuth=False)
+
+ +
+ +

Closes a note.

+ +

Returns the updated note.

+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+
+ + +
+
+
#   + + + def + NoteReopen(self, NoteId, comment): +
+ +
+ View Source +
    def NoteReopen(self, NoteId, comment):
+        """
+        Reopens a note.
+
+        Returns the updated note.
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If the requested element has been deleted,
+        `OsmApi.ElementDeletedApiError` is raised.
+        """
+        path = "/api/0.6/notes/%s/reopen" % NoteId
+        return self._NoteAction(path, comment, optionalAuth=False)
+
+ +
+ +

Reopens a note.

+ +

Returns the updated note.

+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If the requested element has been deleted, +OsmApi.ElementDeletedApiError is raised.

+
+ + +
+
+
#   + + + def + NotesSearch(self, query, limit=100, closed=7): +
+ +
+ View Source +
    def NotesSearch(self, query, limit=100, closed=7):
+        """
+        Returns a list of dicts of notes that match the given search query.
+
+        The limit parameter defines how many results should be returned.
+
+        closed specifies the number of days a bug needs to be closed
+        to no longer be returned.
+        The value 0 means only open bugs are returned,
+        -1 means all bugs are returned.
+        """
+        uri = "/api/0.6/notes/search"
+        params = {}
+        params['q'] = query
+        params['limit'] = limit
+        params['closed'] = closed
+        uri += "?" + urllib.parse.urlencode(params)
+        data = self._get(uri)
+
+        return self.ParseNotes(data)
+
+ +
+ +

Returns a list of dicts of notes that match the given search query.

+ +

The limit parameter defines how many results should be returned.

+ +

closed specifies the number of days a bug needs to be closed +to no longer be returned. +The value 0 means only open bugs are returned, +-1 means all bugs are returned.

+
+ + +
+
+
#   + + + def + Map(self, min_lon, min_lat, max_lon, max_lat): +
+ +
+ View Source +
    def Map(self, min_lon, min_lat, max_lon, max_lat):
+        """
+        Download data in bounding box.
+
+        Returns list of dict:
+
+            #!python
+            {
+                type: node|way|relation,
+                data: {}
+            }
+        """
+        uri = (
+            "/api/0.6/map?bbox=%f,%f,%f,%f"
+            % (min_lon, min_lat, max_lon, max_lat)
+        )
+        data = self._get(uri)
+        return self.ParseOsm(data)
+
+ +
+ +

Download data in bounding box.

+ +

Returns list of dict:

+ +
#!python
+{
+    type: node|way|relation,
+    data: {}
+}
+
+
+ + +
+
+
#   + + + def + ParseOsm(self, data): +
+ +
+ View Source +
    def ParseOsm(self, data):
+        """
+        Parse osm data.
+
+        Returns list of dict:
+
+            #!python
+            {
+                type: node|way|relation,
+                data: {}
+            }
+        """
+        try:
+            data = xml.dom.minidom.parseString(data)
+            data = data.getElementsByTagName("osm")[0]
+        except (xml.parsers.expat.ExpatError, IndexError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        result = []
+        for elem in data.childNodes:
+            if elem.nodeName == "node":
+                result.append({
+                    "type": elem.nodeName,
+                    "data": self._DomParseNode(elem)
+                })
+            elif elem.nodeName == "way":
+                result.append({
+                    "type": elem.nodeName,
+                    "data": self._DomParseWay(elem)
+                })
+            elif elem.nodeName == "relation":
+                result.append({
+                    "type": elem.nodeName,
+                    "data": self._DomParseRelation(elem)
+                })
+        return result
+
+ +
+ +

Parse osm data.

+ +

Returns list of dict:

+ +
#!python
+{
+    type: node|way|relation,
+    data: {}
+}
+
+
+ + +
+
+
#   + + + def + ParseOsc(self, data): +
+ +
+ View Source +
    def ParseOsc(self, data):
+        """
+        Parse osc data.
+
+        Returns list of dict:
+
+            #!python
+            {
+                type: node|way|relation,
+                action: create|delete|modify,
+                data: {}
+            }
+        """
+        try:
+            data = xml.dom.minidom.parseString(data)
+            data = data.getElementsByTagName("osmChange")[0]
+        except (xml.parsers.expat.ExpatError, IndexError) as e:
+            raise XmlResponseInvalidError(
+                "The XML response from the OSM API is invalid: %r" % e
+            )
+
+        result = []
+        for action in data.childNodes:
+            if action.nodeName == "#text":
+                continue
+            for elem in action.childNodes:
+                if elem.nodeName == "node":
+                    result.append({
+                        "action": action.nodeName,
+                        "type": elem.nodeName,
+                        "data": self._DomParseNode(elem)
+                    })
+                elif elem.nodeName == "way":
+                    result.append({
+                        "action": action.nodeName,
+                        "type": elem.nodeName,
+                        "data": self._DomParseWay(elem)
+                    })
+                elif elem.nodeName == "relation":
+                    result.append({
+                        "action": action.nodeName,
+                        "type": elem.nodeName,
+                        "data": self._DomParseRelation(elem)
+                    })
+        return result
+
+ +
+ +

Parse osc data.

+ +

Returns list of dict:

+ +
#!python
+{
+    type: node|way|relation,
+    action: create|delete|modify,
+    data: {}
+}
+
+
+ + +
+
+
#   + + + def + ParseNotes(self, data): +
+ +
+ View Source +
    def ParseNotes(self, data):
+        """
+        Parse notes data.
+
+        Returns a list of dict:
+
+            #!python
+            [
+                {
+                    'id': integer,
+                    'action': opened|commented|closed,
+                    'status': open|closed
+                    'date_created': creation date
+                    'date_closed': closing data|None
+                    'uid': User ID|None
+                    'user': User name|None
+                    'comments': {}
+                },
+                { ... }
+            ]
+        """
+        noteElements = self._OsmResponseToDom(data, tag="note")
+        result = []
+        for noteElement in noteElements:
+            note = self._DomParseNote(noteElement)
+            result.append(note)
+        return result
+
+ +
+ +

Parse notes data.

+ +

Returns a list of dict:

+ +
#!python
+[
+    {
+        'id': integer,
+        'action': opened|commented|closed,
+        'status': open|closed
+        'date_created': creation date
+        'date_closed': closing data|None
+        'uid': User ID|None
+        'user': User name|None
+        'comments': {}
+    },
+    { ... }
+]
+
+
+ + +
+
+
#   + + + def + flush(self): +
+ +
+ View Source +
    def flush(self):
+        """
+        Force the changes to be uploaded to OSM and the changeset to be closed
+
+        If no authentication information are provided,
+        `OsmApi.UsernamePasswordMissingError` is raised.
+
+        If there is no open changeset,
+        `OsmApi.NoChangesetOpenError` is raised.
+
+        If there is already an open changeset,
+        `OsmApi.ChangesetAlreadyOpenError` is raised.
+        """
+        return self._changesetautoflush(True)
+
+ +
+ +

Force the changes to be uploaded to OSM and the changeset to be closed

+ +

If no authentication information are provided, +OsmApi.UsernamePasswordMissingError is raised.

+ +

If there is no open changeset, +OsmApi.NoChangesetOpenError is raised.

+ +

If there is already an open changeset, +OsmApi.ChangesetAlreadyOpenError is raised.

+
+ + +
+
+
+ + \ No newline at end of file diff --git a/docs/osmapi/errors.html b/docs/osmapi/errors.html new file mode 100644 index 0000000..aac25b1 --- /dev/null +++ b/docs/osmapi/errors.html @@ -0,0 +1,1191 @@ + + + + + + + osmapi.errors API documentation + + + + + + + + +
+
+

+osmapi.errors

+ + +
+ View Source +
# -*- coding: utf-8 -*-
+
+class OsmApiError(Exception):
+    """
+    General OsmApi error class to provide a superclass for all other errors
+    """
+
+
+class MaximumRetryLimitReachedError(OsmApiError):
+    """
+    Error when the maximum amount of retries is reached and we have to give up
+    """
+
+
+class UsernamePasswordMissingError(OsmApiError):
+    """
+    Error when username or password is missing for an authenticated request
+    """
+    pass
+
+
+class NoChangesetOpenError(OsmApiError):
+    """
+    Error when an operation requires an open changeset, but currently
+    no changeset _is_ open
+    """
+    pass
+
+
+class ChangesetAlreadyOpenError(OsmApiError):
+    """
+    Error when a user tries to open a changeset when there is already
+    an open changeset
+    """
+    pass
+
+
+class OsmTypeAlreadyExistsError(OsmApiError):
+    """
+    Error when a user tries to create an object that already exsits
+    """
+    pass
+
+
+class XmlResponseInvalidError(OsmApiError):
+    """
+    Error if the XML response from the OpenStreetMap API is invalid
+    """
+
+
+class ApiError(OsmApiError):
+    """
+    Error class, is thrown when an API request fails
+    """
+
+    def __init__(self, status, reason, payload):
+        self.status = status
+        """HTTP error code"""
+
+        self.reason = reason
+        """Error message"""
+
+        self.payload = payload
+        """Payload of API when this error occured"""
+
+    def __str__(self):
+        return (
+            "Request failed: %s - %s - %s"
+            % (str(self.status), self.reason, self.payload)
+        )
+
+
+class AlreadySubscribedApiError(ApiError):
+    """
+    Error when a user tries to subscribe to a changeset
+    that she is already subscribed to
+    """
+    pass
+
+
+class NotSubscribedApiError(ApiError):
+    """
+    Error when user tries to unsubscribe from a changeset
+    that he is not subscribed to
+    """
+    pass
+
+
+class ElementDeletedApiError(ApiError):
+    """
+    Error when the requested element is deleted
+    """
+    pass
+
+
+class ResponseEmptyApiError(ApiError):
+    """
+    Error when the response to the request is empty
+    """
+    pass
+
+
+class ChangesetClosedApiError(ApiError):
+    """
+    Error if the the changeset in question has already been closed
+    """
+
+
+class NoteClosedApiError(ApiError):
+    """
+    Error if the the note in question has already been closed
+    """
+
+
+class VersionMismatchApiError(ApiError):
+    """
+    Error if the provided version does not match the database version
+    of the element
+    """
+
+
+class PreconditionFailedApiError(ApiError):
+    """
+    Error if the precondition of the operation was not met:
+    - When a way has nodes that do not exist or are not visible
+    - When a relation has elements that do not exist or are not visible
+    - When a node/way/relation is still used in a way/relation
+    """
+
+ +
+ +
+
+
+ #   + + + class + OsmApiError(builtins.Exception): +
+ +
+ View Source +
class OsmApiError(Exception):
+    """
+    General OsmApi error class to provide a superclass for all other errors
+    """
+
+ +
+ +

General OsmApi error class to provide a superclass for all other errors

+
+ + +
+
Inherited Members
+
+
builtins.Exception
+
Exception
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + MaximumRetryLimitReachedError(OsmApiError): +
+ +
+ View Source +
class MaximumRetryLimitReachedError(OsmApiError):
+    """
+    Error when the maximum amount of retries is reached and we have to give up
+    """
+
+ +
+ +

Error when the maximum amount of retries is reached and we have to give up

+
+ + +
+
Inherited Members
+
+
builtins.Exception
+
Exception
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + UsernamePasswordMissingError(OsmApiError): +
+ +
+ View Source +
class UsernamePasswordMissingError(OsmApiError):
+    """
+    Error when username or password is missing for an authenticated request
+    """
+    pass
+
+ +
+ +

Error when username or password is missing for an authenticated request

+
+ + +
+
Inherited Members
+
+
builtins.Exception
+
Exception
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + NoChangesetOpenError(OsmApiError): +
+ +
+ View Source +
class NoChangesetOpenError(OsmApiError):
+    """
+    Error when an operation requires an open changeset, but currently
+    no changeset _is_ open
+    """
+    pass
+
+ +
+ +

Error when an operation requires an open changeset, but currently +no changeset _is_ open

+
+ + +
+
Inherited Members
+
+
builtins.Exception
+
Exception
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + ChangesetAlreadyOpenError(OsmApiError): +
+ +
+ View Source +
class ChangesetAlreadyOpenError(OsmApiError):
+    """
+    Error when a user tries to open a changeset when there is already
+    an open changeset
+    """
+    pass
+
+ +
+ +

Error when a user tries to open a changeset when there is already +an open changeset

+
+ + +
+
Inherited Members
+
+
builtins.Exception
+
Exception
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + OsmTypeAlreadyExistsError(OsmApiError): +
+ +
+ View Source +
class OsmTypeAlreadyExistsError(OsmApiError):
+    """
+    Error when a user tries to create an object that already exsits
+    """
+    pass
+
+ +
+ +

Error when a user tries to create an object that already exsits

+
+ + +
+
Inherited Members
+
+
builtins.Exception
+
Exception
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + XmlResponseInvalidError(OsmApiError): +
+ +
+ View Source +
class XmlResponseInvalidError(OsmApiError):
+    """
+    Error if the XML response from the OpenStreetMap API is invalid
+    """
+
+ +
+ +

Error if the XML response from the OpenStreetMap API is invalid

+
+ + +
+
Inherited Members
+
+
builtins.Exception
+
Exception
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + ApiError(OsmApiError): +
+ +
+ View Source +
class ApiError(OsmApiError):
+    """
+    Error class, is thrown when an API request fails
+    """
+
+    def __init__(self, status, reason, payload):
+        self.status = status
+        """HTTP error code"""
+
+        self.reason = reason
+        """Error message"""
+
+        self.payload = payload
+        """Payload of API when this error occured"""
+
+    def __str__(self):
+        return (
+            "Request failed: %s - %s - %s"
+            % (str(self.status), self.reason, self.payload)
+        )
+
+ +
+ +

Error class, is thrown when an API request fails

+
+ + +
+
#   + + + ApiError(status, reason, payload) +
+ +
+ View Source +
    def __init__(self, status, reason, payload):
+        self.status = status
+        """HTTP error code"""
+
+        self.reason = reason
+        """Error message"""
+
+        self.payload = payload
+        """Payload of API when this error occured"""
+
+ +
+ + + +
+
+
#   + + status +
+ +

HTTP error code

+
+ + +
+
+
#   + + reason +
+ +

Error message

+
+ + +
+
+
#   + + payload +
+ +

Payload of API when this error occured

+
+ + +
+
+
Inherited Members
+
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + AlreadySubscribedApiError(ApiError): +
+ +
+ View Source +
class AlreadySubscribedApiError(ApiError):
+    """
+    Error when a user tries to subscribe to a changeset
+    that she is already subscribed to
+    """
+    pass
+
+ +
+ +

Error when a user tries to subscribe to a changeset +that she is already subscribed to

+
+ + +
+
Inherited Members
+
+
ApiError
+
ApiError
+
status
+
reason
+
payload
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + NotSubscribedApiError(ApiError): +
+ +
+ View Source +
class NotSubscribedApiError(ApiError):
+    """
+    Error when user tries to unsubscribe from a changeset
+    that he is not subscribed to
+    """
+    pass
+
+ +
+ +

Error when user tries to unsubscribe from a changeset +that he is not subscribed to

+
+ + +
+
Inherited Members
+
+
ApiError
+
ApiError
+
status
+
reason
+
payload
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + ElementDeletedApiError(ApiError): +
+ +
+ View Source +
class ElementDeletedApiError(ApiError):
+    """
+    Error when the requested element is deleted
+    """
+    pass
+
+ +
+ +

Error when the requested element is deleted

+
+ + +
+
Inherited Members
+
+
ApiError
+
ApiError
+
status
+
reason
+
payload
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + ResponseEmptyApiError(ApiError): +
+ +
+ View Source +
class ResponseEmptyApiError(ApiError):
+    """
+    Error when the response to the request is empty
+    """
+    pass
+
+ +
+ +

Error when the response to the request is empty

+
+ + +
+
Inherited Members
+
+
ApiError
+
ApiError
+
status
+
reason
+
payload
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + ChangesetClosedApiError(ApiError): +
+ +
+ View Source +
class ChangesetClosedApiError(ApiError):
+    """
+    Error if the the changeset in question has already been closed
+    """
+
+ +
+ +

Error if the the changeset in question has already been closed

+
+ + +
+
Inherited Members
+
+
ApiError
+
ApiError
+
status
+
reason
+
payload
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + NoteClosedApiError(ApiError): +
+ +
+ View Source +
class NoteClosedApiError(ApiError):
+    """
+    Error if the the note in question has already been closed
+    """
+
+ +
+ +

Error if the the note in question has already been closed

+
+ + +
+
Inherited Members
+
+
ApiError
+
ApiError
+
status
+
reason
+
payload
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + VersionMismatchApiError(ApiError): +
+ +
+ View Source +
class VersionMismatchApiError(ApiError):
+    """
+    Error if the provided version does not match the database version
+    of the element
+    """
+
+ +
+ +

Error if the provided version does not match the database version +of the element

+
+ + +
+
Inherited Members
+
+
ApiError
+
ApiError
+
status
+
reason
+
payload
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+
+ #   + + + class + PreconditionFailedApiError(ApiError): +
+ +
+ View Source +
class PreconditionFailedApiError(ApiError):
+    """
+    Error if the precondition of the operation was not met:
+    - When a way has nodes that do not exist or are not visible
+    - When a relation has elements that do not exist or are not visible
+    - When a node/way/relation is still used in a way/relation
+    """
+
+ +
+ +

Error if the precondition of the operation was not met:

+ +
    +
  • When a way has nodes that do not exist or are not visible
  • +
  • When a relation has elements that do not exist or are not visible
  • +
  • When a node/way/relation is still used in a way/relation
  • +
+
+ + +
+
Inherited Members
+
+
ApiError
+
ApiError
+
status
+
reason
+
payload
+ +
+
builtins.BaseException
+
with_traceback
+
args
+ +
+
+
+
+
+ + \ No newline at end of file diff --git a/docs/search.js b/docs/search.js new file mode 100644 index 0000000..e1ed768 --- /dev/null +++ b/docs/search.js @@ -0,0 +1,36 @@ +window.pdocSearch = (function(){ +/** elasticlunr - http://weixsong.github.io * Copyright (C) 2017 Oliver Nightingale * Copyright (C) 2017 Wei Song * MIT Licensed */!function(){function e(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.9.5",lunr=t,t.utils={},t.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),t.utils.toString=function(e){return void 0===e||null===e?"":e.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},t.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);-1!==n&&(this.events[e].splice(n,1),0==this.events[e].length&&delete this.events[e])}},t.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)},this)}},t.EventEmitter.prototype.hasHandler=function(e){return e in this.events},t.tokenizer=function(e){if(!arguments.length||null===e||void 0===e)return[];if(Array.isArray(e)){var n=e.filter(function(e){return null===e||void 0===e?!1:!0});n=n.map(function(e){return t.utils.toString(e).toLowerCase()});var i=[];return n.forEach(function(e){var n=e.split(t.tokenizer.seperator);i=i.concat(n)},this),i}return e.toString().trim().toLowerCase().split(t.tokenizer.seperator)},t.tokenizer.defaultSeperator=/[\s\-]+/,t.tokenizer.seperator=t.tokenizer.defaultSeperator,t.tokenizer.setSeperator=function(e){null!==e&&void 0!==e&&"object"==typeof e&&(t.tokenizer.seperator=e)},t.tokenizer.resetSeperator=function(){t.tokenizer.seperator=t.tokenizer.defaultSeperator},t.tokenizer.getSeperator=function(){return t.tokenizer.seperator},t.Pipeline=function(){this._queue=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in t.Pipeline.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[n]=e},t.Pipeline.getRegisteredFunction=function(e){return e in t.Pipeline.registeredFunctions!=!0?null:t.Pipeline.registeredFunctions[e]},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.getRegisteredFunction(e);if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i+1,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i,0,n)},t.Pipeline.prototype.remove=function(e){var t=this._queue.indexOf(e);-1!==t&&this._queue.splice(t,1)},t.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,i=this._queue.length,o=0;n>o;o++){for(var r=e[o],s=0;i>s&&(r=this._queue[s](r,o,e),void 0!==r&&null!==r);s++);void 0!==r&&null!==r&&t.push(r)}return t},t.Pipeline.prototype.reset=function(){this._queue=[]},t.Pipeline.prototype.get=function(){return this._queue},t.Pipeline.prototype.toJSON=function(){return this._queue.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.DocumentStore,this.index={},this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},t.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;n._fields=e.fields,n._ref=e.ref,n.documentStore=t.DocumentStore.load(e.documentStore),n.pipeline=t.Pipeline.load(e.pipeline),n.index={};for(var i in e.index)n.index[i]=t.InvertedIndex.load(e.index[i]);return n},t.Index.prototype.addField=function(e){return this._fields.push(e),this.index[e]=new t.InvertedIndex,this},t.Index.prototype.setRef=function(e){return this._ref=e,this},t.Index.prototype.saveDocument=function(e){return this.documentStore=new t.DocumentStore(e),this},t.Index.prototype.addDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.addDoc(i,e),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));this.documentStore.addFieldLength(i,n,o.length);var r={};o.forEach(function(e){e in r?r[e]+=1:r[e]=1},this);for(var s in r){var u=r[s];u=Math.sqrt(u),this.index[n].addToken(s,{ref:i,tf:u})}},this),n&&this.eventEmitter.emit("add",e,this)}},t.Index.prototype.removeDocByRef=function(e){if(e&&this.documentStore.isDocStored()!==!1&&this.documentStore.hasDoc(e)){var t=this.documentStore.getDoc(e);this.removeDoc(t,!1)}},t.Index.prototype.removeDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.hasDoc(i)&&(this.documentStore.removeDoc(i),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));o.forEach(function(e){this.index[n].removeToken(e,i)},this)},this),n&&this.eventEmitter.emit("remove",e,this))}},t.Index.prototype.updateDoc=function(e,t){var t=void 0===t?!0:t;this.removeDocByRef(e[this._ref],!1),this.addDoc(e,!1),t&&this.eventEmitter.emit("update",e,this)},t.Index.prototype.idf=function(e,t){var n="@"+t+"/"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,n))return this._idfCache[n];var i=this.index[t].getDocFreq(e),o=1+Math.log(this.documentStore.length/(i+1));return this._idfCache[n]=o,o},t.Index.prototype.getFields=function(){return this._fields.slice()},t.Index.prototype.search=function(e,n){if(!e)return[];e="string"==typeof e?{any:e}:JSON.parse(JSON.stringify(e));var i=null;null!=n&&(i=JSON.stringify(n));for(var o=new t.Configuration(i,this.getFields()).get(),r={},s=Object.keys(e),u=0;u0&&t.push(e);for(var i in n)"docs"!==i&&"df"!==i&&this.expandToken(e+i,t,n[i]);return t},t.InvertedIndex.prototype.toJSON=function(){return{root:this.root}},t.Configuration=function(e,n){var e=e||"";if(void 0==n||null==n)throw new Error("fields should not be null");this.config={};var i;try{i=JSON.parse(e),this.buildUserConfig(i,n)}catch(o){t.utils.warn("user configuration parse failed, will use default configuration"),this.buildDefaultConfig(n)}},t.Configuration.prototype.buildDefaultConfig=function(e){this.reset(),e.forEach(function(e){this.config[e]={boost:1,bool:"OR",expand:!1}},this)},t.Configuration.prototype.buildUserConfig=function(e,n){var i="OR",o=!1;if(this.reset(),"bool"in e&&(i=e.bool||i),"expand"in e&&(o=e.expand||o),"fields"in e)for(var r in e.fields)if(n.indexOf(r)>-1){var s=e.fields[r],u=o;void 0!=s.expand&&(u=s.expand),this.config[r]={boost:s.boost||0===s.boost?s.boost:1,bool:s.bool||i,expand:u}}else t.utils.warn("field name in user configuration not found in index instance fields");else this.addAllFields2UserConfig(i,o,n)},t.Configuration.prototype.addAllFields2UserConfig=function(e,t,n){n.forEach(function(n){this.config[n]={boost:1,bool:e,expand:t}},this)},t.Configuration.prototype.get=function(){return this.config},t.Configuration.prototype.reset=function(){this.config={}},lunr.SortedSet=function(){this.length=0,this.elements=[]},lunr.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},lunr.SortedSet.prototype.add=function(){var e,t;for(e=0;e1;){if(r===e)return o;e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o]}return r===e?o:-1},lunr.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;)e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o];return r>e?o:e>r?o+1:void 0},lunr.SortedSet.prototype.intersect=function(e){for(var t=new lunr.SortedSet,n=0,i=0,o=this.length,r=e.length,s=this.elements,u=e.elements;;){if(n>o-1||i>r-1)break;s[n]!==u[i]?s[n]u[i]&&i++:(t.add(s[n]),n++,i++)}return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){var t,n,i;this.length>=e.length?(t=this,n=e):(t=e,n=this),i=t.clone();for(var o=0,r=n.toArray();o

\n"}, "osmapi.OsmApi": {"fullname": "osmapi.OsmApi", "modulename": "osmapi.OsmApi", "qualname": "", "type": "module", "doc": "

The OsmApi module is a wrapper for the OpenStreetMap API.\nAs such it provides an easy access to the functionality of the API.

\n\n

You can find this module on PyPI\nor on GitHub.

\n\n

Find all information about changes of the different versions of this module\nin the CHANGELOG.

\n\n

Notes:

\n\n
    \n
  • dictionary keys are _unicode_
  • \n
  • changeset is _integer_
  • \n
  • version is _integer_
  • \n
  • tag is a _dictionary_
  • \n
  • timestamp is _unicode_
  • \n
  • user is _unicode_
  • \n
  • uid is _integer_
  • \n
  • node lat and lon are _floats_
  • \n
  • way nd is list of _integers_
  • \n
  • relation member is a _list of dictionaries_ like\n{\"role\": \"\", \"ref\":123, \"type\": \"node\"}
  • \n
\n"}, "osmapi.OsmApi.OsmApi": {"fullname": "osmapi.OsmApi.OsmApi", "modulename": "osmapi.OsmApi", "qualname": "OsmApi", "type": "class", "doc": "

Main class of osmapi, instanciate this class to use osmapi

\n"}, "osmapi.OsmApi.OsmApi.__init__": {"fullname": "osmapi.OsmApi.OsmApi.__init__", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.__init__", "type": "function", "doc": "

Initialized the OsmApi object.

\n\n

There are two different ways to authenticate a user.\nEither username and password are supplied directly or the path\nto a passwordfile is given, where on the first line username\nand password must be colon-separated (:).

\n\n

To credit the application that supplies changes to OSM, an appid\ncan be provided. This is a string identifying the application.\nIf this is omitted \"osmapi\" is used.

\n\n

It is possible to configure the URL to connect to using the api\nparameter. By default this is the SSL version of the production API\nof OpenStreetMap, for testing purposes, one might prefer the official\ntest instance at \"api06.dev.openstreetmap.org\" or any other valid\nOSM-API. To use an encrypted connection (HTTPS) simply add 'https://'\nin front of the hostname of the api parameter (e.g.\nhttps://api.openstreetmap.com).

\n\n

There are several options to control the changeset behaviour. By\ndefault, a programmer has to take care to open and close a changeset\nprior to make changes to OSM.\nBy setting changesetauto to True, osmapi automatically opens\nchangesets.\nThe changesetautotags parameter takes a dict, where each key/value\npair is applied as tags to the changeset.\nThe option changesetautosize defines the size of each\nupload (default: 500) and changesetautomulti defines how many\nuploads should be made before closing a changeset and opening a new\none (default: 1).

\n\n

The debug parameter can be used to generate a more verbose output.

\n", "parameters": ["self", "username", "password", "passwordfile", "appid", "created_by", "api", "changesetauto", "changesetautotags", "changesetautosize", "changesetautomulti", "debug"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"fullname": "osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.MAX_RETRY_LIMIT", "type": "variable", "doc": "

Maximum retries if a call to the remote API fails (default: 5)

\n"}, "osmapi.OsmApi.OsmApi.close": {"fullname": "osmapi.OsmApi.OsmApi.close", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.close", "type": "function", "doc": "

\n", "parameters": ["self"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.Capabilities": {"fullname": "osmapi.OsmApi.OsmApi.Capabilities", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.Capabilities", "type": "function", "doc": "

Returns the API capabilities as a dict:

\n\n
#!python\n{\n    'area': {\n        'maximum': area in square degrees that can be queried,\n    },\n    'changesets': {\n        'maximum_elements': number of elements per changeset,\n    },\n    'status': {\n        'api': online|readonly|offline,\n        'database': online|readonly|offline,\n        'gpx': online|readonly|offline,\n    },\n    'timeout': {\n        'seconds': timeout in seconds for API calls,\n    },\n    'tracepoints': {\n        'per_page': maximum number of points in a GPX track,\n    },\n    'version': {\n        'maximum': maximum version of API this server supports,\n        'minimum': minimum version of API this server supports,\n    },\n    'waynodes': {\n        'maximum': maximum number of nodes that a way may contain,\n    },\n}\n
\n\n

The capabilities can be used by a client to\ngain insights of the server in use.

\n", "parameters": ["self"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NodeGet": {"fullname": "osmapi.OsmApi.OsmApi.NodeGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NodeGet", "type": "function", "doc": "

Returns node with NodeId as a dict:

\n\n
#!python\n{\n    'id': id of node,\n    'lat': latitude of node,\n    'lon': longitude of node,\n    'tag': {},\n    'changeset': id of changeset of last change,\n    'version': version number of node,\n    'user': username of user that made the last change,\n    'uid': id of user that made the last change,\n    'timestamp': timestamp of last change,\n    'visible': True|False\n}\n
\n\n

If NodeVersion is supplied, this specific version is returned,\notherwise the latest version is returned.

\n\n

If the requested element has been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "NodeId", "NodeVersion"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NodeCreate": {"fullname": "osmapi.OsmApi.OsmApi.NodeCreate", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NodeCreate", "type": "function", "doc": "

Creates a node based on the supplied NodeData dict:

\n\n
#!python\n{\n    'lat': latitude of node,\n    'lon': longitude of node,\n    'tag': {},\n}\n
\n\n

Returns updated NodeData (without timestamp):

\n\n
#!python\n{\n    'id': id of node,\n    'lat': latitude of node,\n    'lon': longitude of node,\n    'tag': dict of tags,\n    'changeset': id of changeset of last change,\n    'version': version number of node,\n    'user': username of last change,\n    'uid': id of user of last change,\n    'visible': True|False\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If the supplied information contain an existing node,\nOsmApi.OsmTypeAlreadyExistsError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self", "NodeData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"fullname": "osmapi.OsmApi.OsmApi.NodeUpdate", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NodeUpdate", "type": "function", "doc": "

Updates node with the supplied NodeData dict:

\n\n
#!python\n{\n    'id': id of node,\n    'lat': latitude of node,\n    'lon': longitude of node,\n    'tag': {},\n    'version': version number of node,\n}\n
\n\n

Returns updated NodeData (without timestamp):

\n\n
#!python\n{\n    'id': id of node,\n    'lat': latitude of node,\n    'lon': longitude of node,\n    'tag': dict of tags,\n    'changeset': id of changeset of last change,\n    'version': version number of node,\n    'user': username of last change,\n    'uid': id of user of last change,\n    'visible': True|False\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self", "NodeData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NodeDelete": {"fullname": "osmapi.OsmApi.OsmApi.NodeDelete", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NodeDelete", "type": "function", "doc": "

Delete node with NodeData:

\n\n
#!python\n{\n    'id': id of node,\n    'lat': latitude of node,\n    'lon': longitude of node,\n    'tag': dict of tags,\n    'version': version number of node,\n}\n
\n\n

Returns updated NodeData (without timestamp):

\n\n
#!python\n{\n    'id': id of node,\n    'lat': latitude of node,\n    'lon': longitude of node,\n    'tag': dict of tags,\n    'changeset': id of changeset of last change,\n    'version': version number of node,\n    'user': username of last change,\n    'uid': id of user of last change,\n    'visible': True|False\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n\n

If the requested element has already been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "NodeData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NodeHistory": {"fullname": "osmapi.OsmApi.OsmApi.NodeHistory", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NodeHistory", "type": "function", "doc": "

Returns dict with version as key:

\n\n
#!python\n{\n    '1': dict of NodeData,\n    '2': dict of NodeData,\n    ...\n}\n
\n\n

NodeId is the unique identifier of a node.

\n", "parameters": ["self", "NodeId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NodeWays": {"fullname": "osmapi.OsmApi.OsmApi.NodeWays", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NodeWays", "type": "function", "doc": "

Returns a list of dicts of WayData containing node NodeId:

\n\n
#!python\n[\n    {\n        'id': id of Way,\n        'nd': [] list of NodeIds in this way\n        'tag': {} dict of tags,\n        'changeset': id of changeset of last change,\n        'version': version number of Way,\n        'user': username of user that made the last change,\n        'uid': id of user that made the last change,\n        'visible': True|False\n    },\n    {\n        ...\n    },\n]\n
\n\n

The NodeId is a unique identifier for a node.

\n", "parameters": ["self", "NodeId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NodeRelations": {"fullname": "osmapi.OsmApi.OsmApi.NodeRelations", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NodeRelations", "type": "function", "doc": "

Returns a list of dicts of RelationData containing node NodeId:

\n\n
#!python\n[\n    {\n        'id': id of Relation,\n        'member': [\n            {\n                'ref': ID of referenced element,\n                'role': optional description of role in relation\n                'type': node|way|relation\n            },\n            {\n                ...\n            }\n        ]\n        'tag': {},\n        'changeset': id of changeset of last change,\n        'version': version number of Way,\n        'user': username of user that made the last change,\n        'uid': id of user that made the last change,\n        'visible': True|False\n    },\n    {\n        ...\n    },\n]\n
\n\n

The NodeId is a unique identifier for a node.

\n", "parameters": ["self", "NodeId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NodesGet": {"fullname": "osmapi.OsmApi.OsmApi.NodesGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NodesGet", "type": "function", "doc": "

Returns dict with the id of the Node as a key\nfor each node in NodeIdList:

\n\n
#!python\n{\n    '1234': dict of NodeData,\n    '5678': dict of NodeData,\n    ...\n}\n
\n\n

NodeIdList is a list containing unique identifiers\nfor multiple nodes.

\n", "parameters": ["self", "NodeIdList"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.WayGet": {"fullname": "osmapi.OsmApi.OsmApi.WayGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.WayGet", "type": "function", "doc": "

Returns way with WayId as a dict:

\n\n
#!python\n{\n    'id': id of way,\n    'tag': {} tags of this way,\n    'nd': [] list of nodes belonging to this way\n    'changeset': id of changeset of last change,\n    'version': version number of way,\n    'user': username of user that made the last change,\n    'uid': id of user that made the last change,\n    'timestamp': timestamp of last change,\n    'visible': True|False\n}\n
\n\n

If WayVersion is supplied, this specific version is returned,\notherwise the latest version is returned.

\n\n

If the requested element has been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "WayId", "WayVersion"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.WayCreate": {"fullname": "osmapi.OsmApi.OsmApi.WayCreate", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.WayCreate", "type": "function", "doc": "

Creates a way based on the supplied WayData dict:

\n\n
#!python\n{\n    'nd': [] list of nodes,\n    'tag': {} dict of tags,\n}\n
\n\n

Returns updated WayData (without timestamp):

\n\n
#!python\n{\n    'id': id of node,\n    'nd': [] list of nodes,\n    'tag': {} dict of tags,\n    'changeset': id of changeset of last change,\n    'version': version number of way,\n    'user': username of last change,\n    'uid': id of user of last change,\n    'visible': True|False\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If the supplied information contain an existing node,\nOsmApi.OsmTypeAlreadyExistsError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self", "WayData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.WayUpdate": {"fullname": "osmapi.OsmApi.OsmApi.WayUpdate", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.WayUpdate", "type": "function", "doc": "

Updates way with the supplied WayData dict:

\n\n
#!python\n{\n    'id': id of way,\n    'nd': [] list of nodes,\n    'tag': {},\n    'version': version number of way,\n}\n
\n\n

Returns updated WayData (without timestamp):

\n\n
#!python\n{\n    'id': id of node,\n    'nd': [] list of nodes,\n    'tag': {} dict of tags,\n    'changeset': id of changeset of last change,\n    'version': version number of way,\n    'user': username of last change,\n    'uid': id of user of last change,\n    'visible': True|False\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self", "WayData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.WayDelete": {"fullname": "osmapi.OsmApi.OsmApi.WayDelete", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.WayDelete", "type": "function", "doc": "

Delete way with WayData:

\n\n
#!python\n{\n    'id': id of way,\n    'nd': [] list of nodes,\n    'tag': dict of tags,\n    'version': version number of way,\n}\n
\n\n

Returns updated WayData (without timestamp):

\n\n
#!python\n{\n    'id': id of node,\n    'nd': [] list of nodes,\n    'tag': {} dict of tags,\n    'changeset': id of changeset of last change,\n    'version': version number of way,\n    'user': username of last change,\n    'uid': id of user of last change,\n    'visible': True|False\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n\n

If the requested element has already been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "WayData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.WayHistory": {"fullname": "osmapi.OsmApi.OsmApi.WayHistory", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.WayHistory", "type": "function", "doc": "

Returns dict with version as key:

\n\n
#!python\n{\n    '1': dict of WayData,\n    '2': dict of WayData,\n    ...\n}\n
\n\n

WayId is the unique identifier of a way.

\n", "parameters": ["self", "WayId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.WayRelations": {"fullname": "osmapi.OsmApi.OsmApi.WayRelations", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.WayRelations", "type": "function", "doc": "

Returns a list of dicts of RelationData containing way WayId:

\n\n
#!python\n[\n    {\n        'id': id of Relation,\n        'member': [\n            {\n                'ref': ID of referenced element,\n                'role': optional description of role in relation\n                'type': node|way|relation\n            },\n            {\n                ...\n            }\n        ]\n        'tag': {} dict of tags,\n        'changeset': id of changeset of last change,\n        'version': version number of Way,\n        'user': username of user that made the last change,\n        'uid': id of user that made the last change,\n        'visible': True|False\n    },\n    {\n        ...\n    },\n]\n
\n\n

The WayId is a unique identifier for a way.

\n", "parameters": ["self", "WayId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.WayFull": {"fullname": "osmapi.OsmApi.OsmApi.WayFull", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.WayFull", "type": "function", "doc": "

Returns the full data for way WayId as list of dicts:

\n\n
#!python\n[\n    {\n        'type': node|way|relation,\n        'data': {} data dict for node|way|relation\n    },\n    { ... }\n]\n
\n\n

The WayId is a unique identifier for a way.

\n\n

If the requested element has been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "WayId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.WaysGet": {"fullname": "osmapi.OsmApi.OsmApi.WaysGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.WaysGet", "type": "function", "doc": "

Returns dict with the id of the way as a key for\neach way in WayIdList:

\n\n
#!python\n{\n    '1234': dict of WayData,\n    '5678': dict of WayData,\n    ...\n}\n
\n\n

WayIdList is a list containing unique identifiers for multiple ways.

\n", "parameters": ["self", "WayIdList"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.RelationGet": {"fullname": "osmapi.OsmApi.OsmApi.RelationGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.RelationGet", "type": "function", "doc": "

Returns relation with RelationId as a dict:

\n\n
#!python\n{\n    'id': id of Relation,\n    'member': [\n        {\n            'ref': ID of referenced element,\n            'role': optional description of role in relation\n            'type': node|way|relation\n        },\n        {\n            ...\n        }\n    ]\n    'tag': {} dict of tags,\n    'changeset': id of changeset of last change,\n    'version': version number of Relation,\n    'user': username of user that made the last change,\n    'uid': id of user that made the last change,\n    'timestamp': timestamp of last change,\n    'visible': True|False\n}\n
\n\n

If RelationVersion is supplied, this specific version is returned,\notherwise the latest version is returned.

\n\n

If the requested element has been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "RelationId", "RelationVersion"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.RelationCreate": {"fullname": "osmapi.OsmApi.OsmApi.RelationCreate", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.RelationCreate", "type": "function", "doc": "

Creates a relation based on the supplied RelationData dict:

\n\n
#!python\n{\n    'member': [] list of members,\n    'tag': {} dict of tags,\n}\n
\n\n

Returns updated RelationData (without timestamp):

\n\n
#!python\n{\n    'id': id of Relation,\n    'member': [\n        {\n            'ref': ID of referenced element,\n            'role': optional description of role in relation\n            'type': node|way|relation\n        },\n        {\n            ...\n        }\n    ]\n    'tag': {} dict of tags,\n    'changeset': id of changeset of last change,\n    'version': version number of Relation,\n    'user': username of user that made the last change,\n    'uid': id of user that made the last change,\n    'visible': True|False\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If the supplied information contain an existing node,\nOsmApi.OsmTypeAlreadyExistsError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self", "RelationData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"fullname": "osmapi.OsmApi.OsmApi.RelationUpdate", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.RelationUpdate", "type": "function", "doc": "

Updates relation with the supplied RelationData dict:

\n\n
#!python\n{\n    'id': id of relation,\n    'member': [] list of member dicts,\n    'tag': {},\n    'version': version number of relation,\n}\n
\n\n

Returns updated RelationData (without timestamp):

\n\n
#!python\n{\n    'id': id of Relation,\n    'member': [\n        {\n            'ref': ID of referenced element,\n            'role': optional description of role in relation\n            'type': node|way|relation\n        },\n        {\n            ...\n        }\n    ]\n    'tag': {} dict of tags\n    'changeset': id of changeset of last change,\n    'version': version number of Relation,\n    'user': username of user that made the last change,\n    'uid': id of user that made the last change,\n    'visible': True|False\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self", "RelationData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.RelationDelete": {"fullname": "osmapi.OsmApi.OsmApi.RelationDelete", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.RelationDelete", "type": "function", "doc": "

Delete relation with RelationData dict:

\n\n
#!python\n{\n    'id': id of relation,\n    'member': [] list of member dicts,\n    'tag': {},\n    'version': version number of relation,\n}\n
\n\n

Returns updated RelationData (without timestamp):

\n\n
#!python\n{\n    'id': id of Relation,\n    'member': [\n        {\n            'ref': ID of referenced element,\n            'role': optional description of role in relation\n            'type': node|way|relation\n        },\n        {\n            ...\n        }\n    ]\n    'tag': {} dict of tags,\n    'changeset': id of changeset of last change,\n    'version': version number of Relation,\n    'user': username of user that made the last change,\n    'uid': id of user that made the last change,\n    'visible': True|False\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n\n

If the requested element has already been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "RelationData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.RelationHistory": {"fullname": "osmapi.OsmApi.OsmApi.RelationHistory", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.RelationHistory", "type": "function", "doc": "

Returns dict with version as key:

\n\n
#!python\n{\n    '1': dict of RelationData,\n    '2': dict of RelationData,\n    ...\n}\n
\n\n

RelationId is the unique identifier of a relation.

\n", "parameters": ["self", "RelationId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.RelationRelations": {"fullname": "osmapi.OsmApi.OsmApi.RelationRelations", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.RelationRelations", "type": "function", "doc": "

Returns a list of dicts of RelationData\ncontaining relation RelationId:

\n\n
#!python\n[\n    {\n        'id': id of Relation,\n        'member': [\n            {\n                'ref': ID of referenced element,\n                'role': optional description of role in relation\n                'type': node|way|relation\n            },\n            {\n                ...\n            }\n        ]\n        'tag': {} dict of tags,\n        'changeset': id of changeset of last change,\n        'version': version number of Way,\n        'user': username of user that made the last change,\n        'uid': id of user that made the last change,\n        'visible': True|False\n    },\n    {\n        ...\n    },\n]\n
\n\n

The RelationId is a unique identifier for a relation.

\n", "parameters": ["self", "RelationId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"fullname": "osmapi.OsmApi.OsmApi.RelationFullRecur", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.RelationFullRecur", "type": "function", "doc": "

Returns the full data (all levels) for relation\nRelationId as list of dicts:

\n\n
#!python\n[\n    {\n        'type': node|way|relation,\n        'data': {} data dict for node|way|relation\n    },\n    { ... }\n]\n
\n\n

The RelationId is a unique identifier for a way.

\n\n

This function is useful for relations containing other relations.

\n\n

If you don't need all levels, use OsmApi.RelationFull\ninstead, which return only 2 levels.

\n\n

If any relation (on any level) has been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "RelationId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.RelationFull": {"fullname": "osmapi.OsmApi.OsmApi.RelationFull", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.RelationFull", "type": "function", "doc": "

Returns the full data (two levels) for relation\nRelationId as list of dicts:

\n\n
#!python\n[\n    {\n        'type': node|way|relation,\n        'data': {} data dict for node|way|relation\n    },\n    { ... }\n]\n
\n\n

The RelationId is a unique identifier for a way.

\n\n

If you need all levels, use OsmApi.RelationFullRecur.

\n\n

If the requested element has been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "RelationId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.RelationsGet": {"fullname": "osmapi.OsmApi.OsmApi.RelationsGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.RelationsGet", "type": "function", "doc": "

Returns dict with the id of the relation as a key\nfor each relation in RelationIdList:

\n\n
#!python\n{\n    '1234': dict of RelationData,\n    '5678': dict of RelationData,\n    ...\n}\n
\n\n

RelationIdList is a list containing unique identifiers\nfor multiple relations.

\n", "parameters": ["self", "RelationIdList"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetGet", "type": "function", "doc": "

Returns changeset with ChangesetId as a dict:

\n\n
#!python\n{\n    'id': id of Changeset,\n    'open': True|False, wheter or not this changeset is open\n    'tag': {} dict of tags,\n    'created_at': timestamp of creation of this changeset\n    'closed_at': timestamp when changeset was closed\n    'comments_count': amount of comments\n    'discussion': [] list of comment dict (-> `include_discussion`)\n    'max_lon': maximum longitude of changes in this changeset\n    'max_lat': maximum latitude of changes in this changeset\n    'min_lon': minimum longitude of changes in this changeset\n    'min_lat': minimum longitude of changes in this changeset\n    'user': username of user that created this changeset,\n    'uid': id of user that created this changeset,\n}\n
\n\n

ChangesetId is the unique identifier of a changeset.

\n\n

If include_discussion is set to True the changeset discussion\nwill be available in the result.

\n", "parameters": ["self", "ChangesetId", "include_discussion"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetUpdate", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetUpdate", "type": "function", "doc": "

Updates current changeset with ChangesetTags.

\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self", "ChangesetTags"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetCreate", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetCreate", "type": "function", "doc": "

Opens a changeset.

\n\n

If ChangesetTags are given, this tags are applied (key/value).

\n\n

Returns ChangesetId

\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n", "parameters": ["self", "ChangesetTags"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetClose", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetClose", "type": "function", "doc": "

Closes current changeset.

\n\n

Returns ChangesetId.

\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetUpload", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetUpload", "type": "function", "doc": "

Upload data with the ChangesData list of dicts:

\n\n
#!python\n{\n    type: node|way|relation,\n    action: create|delete|modify,\n    data: {}\n}\n
\n\n

Returns list with updated ids.

\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self", "ChangesData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetDownload", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetDownload", "type": "function", "doc": "

Download data from changeset ChangesetId.

\n\n

Returns list of dict:

\n\n
#!python\n{\n    'type': node|way|relation,\n    'action': create|delete|modify,\n    'data': {}\n}\n
\n", "parameters": ["self", "ChangesetId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetsGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetsGet", "type": "function", "doc": "

Returns a dict with the id of the changeset as key\nmatching all criteria:

\n\n
#!python\n{\n    '1234': dict of ChangesetData,\n    '5678': dict of ChangesetData,\n    ...\n}\n
\n\n

All parameters are optional.

\n", "parameters": ["self", "min_lon", "min_lat", "max_lon", "max_lat", "userid", "username", "closed_after", "created_before", "only_open", "only_closed"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetComment", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetComment", "type": "function", "doc": "

Adds a comment to the changeset ChangesetId

\n\n

comment should be a string.

\n\n

Returns the updated ChangesetData dict:

\n\n
#!python\n{\n    'id': id of Changeset,\n    'open': True|False, wheter or not this changeset is open\n    'tag': {} dict of tags,\n    'created_at': timestamp of creation of this changeset\n    'closed_at': timestamp when changeset was closed\n    'comments_count': amount of comments\n    'max_lon': maximum longitude of changes in this changeset\n    'max_lat': maximum latitude of changes in this changeset\n    'min_lon': minimum longitude of changes in this changeset\n    'min_lat': minimum longitude of changes in this changeset\n    'user': username of user that created this changeset,\n    'uid': id of user that created this changeset,\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If the changeset is already closed,\nOsmApi.ChangesetClosedApiError is raised.

\n", "parameters": ["self", "ChangesetId", "comment"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetSubscribe", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetSubscribe", "type": "function", "doc": "

Subcribe to the changeset discussion of changeset ChangesetId.

\n\n

The user will be informed about new comments (i.e. receive an email).

\n\n

Returns the updated ChangesetData dict:

\n\n
#!python\n{\n    'id': id of Changeset,\n    'open': True|False, wheter or not this changeset is open\n    'tag': {} dict of tags,\n    'created_at': timestamp of creation of this changeset\n    'closed_at': timestamp when changeset was closed\n    'comments_count': amount of comments\n    'max_lon': maximum longitude of changes in this changeset\n    'max_lat': maximum latitude of changes in this changeset\n    'min_lon': minimum longitude of changes in this changeset\n    'min_lat': minimum longitude of changes in this changeset\n    'user': username of user that created this changeset,\n    'uid': id of user that created this changeset,\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n", "parameters": ["self", "ChangesetId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"fullname": "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ChangesetUnsubscribe", "type": "function", "doc": "

Subcribe to the changeset discussion of changeset ChangesetId.

\n\n

The user will be informed about new comments (i.e. receive an email).

\n\n

Returns the updated ChangesetData dict:

\n\n
#!python\n{\n    'id': id of Changeset,\n    'open': True|False, wheter or not this changeset is open\n    'tag': {} dict of tags,\n    'created_at': timestamp of creation of this changeset\n    'closed_at': timestamp when changeset was closed\n    'comments_count': amount of comments\n    'max_lon': maximum longitude of changes in this changeset\n    'max_lat': maximum latitude of changes in this changeset\n    'min_lon': minimum longitude of changes in this changeset\n    'min_lat': minimum longitude of changes in this changeset\n    'user': username of user that created this changeset,\n    'uid': id of user that created this changeset,\n}\n
\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n", "parameters": ["self", "ChangesetId"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NotesGet": {"fullname": "osmapi.OsmApi.OsmApi.NotesGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NotesGet", "type": "function", "doc": "

Returns a list of dicts of notes in the specified bounding box:

\n\n
#!python\n[\n    {\n        'id': integer,\n        'action': opened|commented|closed,\n        'status': open|closed\n        'date_created': creation date\n        'date_closed': closing data|None\n        'uid': User ID|None\n        'user': User name|None\n        'comments': {}\n    },\n    { ... }\n]\n
\n\n

The limit parameter defines how many results should be returned.

\n\n

closed specifies the number of days a bug needs to be closed\nto no longer be returned.\nThe value 0 means only open bugs are returned,\n-1 means all bugs are returned.

\n\n

All parameters are optional.

\n", "parameters": ["self", "min_lon", "min_lat", "max_lon", "max_lat", "limit", "closed"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NoteGet": {"fullname": "osmapi.OsmApi.OsmApi.NoteGet", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NoteGet", "type": "function", "doc": "

Returns a note as dict:

\n\n
#!python\n{\n    'id': integer,\n    'action': opened|commented|closed,\n    'status': open|closed\n    'date_created': creation date\n    'date_closed': closing data|None\n    'uid': User ID|None\n    'user': User name|None\n    'comments': {}\n}\n
\n\n

id is the unique identifier of the note.

\n", "parameters": ["self", "id"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NoteCreate": {"fullname": "osmapi.OsmApi.OsmApi.NoteCreate", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NoteCreate", "type": "function", "doc": "

Creates a note.

\n\n

Returns updated NoteData (without timestamp).

\n", "parameters": ["self", "NoteData"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NoteComment": {"fullname": "osmapi.OsmApi.OsmApi.NoteComment", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NoteComment", "type": "function", "doc": "

Adds a new comment to a note.

\n\n

Returns the updated note.

\n", "parameters": ["self", "NoteId", "comment"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NoteClose": {"fullname": "osmapi.OsmApi.OsmApi.NoteClose", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NoteClose", "type": "function", "doc": "

Closes a note.

\n\n

Returns the updated note.

\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n", "parameters": ["self", "NoteId", "comment"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NoteReopen": {"fullname": "osmapi.OsmApi.OsmApi.NoteReopen", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NoteReopen", "type": "function", "doc": "

Reopens a note.

\n\n

Returns the updated note.

\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If the requested element has been deleted,\nOsmApi.ElementDeletedApiError is raised.

\n", "parameters": ["self", "NoteId", "comment"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.NotesSearch": {"fullname": "osmapi.OsmApi.OsmApi.NotesSearch", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.NotesSearch", "type": "function", "doc": "

Returns a list of dicts of notes that match the given search query.

\n\n

The limit parameter defines how many results should be returned.

\n\n

closed specifies the number of days a bug needs to be closed\nto no longer be returned.\nThe value 0 means only open bugs are returned,\n-1 means all bugs are returned.

\n", "parameters": ["self", "query", "limit", "closed"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.Map": {"fullname": "osmapi.OsmApi.OsmApi.Map", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.Map", "type": "function", "doc": "

Download data in bounding box.

\n\n

Returns list of dict:

\n\n
#!python\n{\n    type: node|way|relation,\n    data: {}\n}\n
\n", "parameters": ["self", "min_lon", "min_lat", "max_lon", "max_lat"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ParseOsm": {"fullname": "osmapi.OsmApi.OsmApi.ParseOsm", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ParseOsm", "type": "function", "doc": "

Parse osm data.

\n\n

Returns list of dict:

\n\n
#!python\n{\n    type: node|way|relation,\n    data: {}\n}\n
\n", "parameters": ["self", "data"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ParseOsc": {"fullname": "osmapi.OsmApi.OsmApi.ParseOsc", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ParseOsc", "type": "function", "doc": "

Parse osc data.

\n\n

Returns list of dict:

\n\n
#!python\n{\n    type: node|way|relation,\n    action: create|delete|modify,\n    data: {}\n}\n
\n", "parameters": ["self", "data"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.ParseNotes": {"fullname": "osmapi.OsmApi.OsmApi.ParseNotes", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.ParseNotes", "type": "function", "doc": "

Parse notes data.

\n\n

Returns a list of dict:

\n\n
#!python\n[\n    {\n        'id': integer,\n        'action': opened|commented|closed,\n        'status': open|closed\n        'date_created': creation date\n        'date_closed': closing data|None\n        'uid': User ID|None\n        'user': User name|None\n        'comments': {}\n    },\n    { ... }\n]\n
\n", "parameters": ["self", "data"], "funcdef": "def"}, "osmapi.OsmApi.OsmApi.flush": {"fullname": "osmapi.OsmApi.OsmApi.flush", "modulename": "osmapi.OsmApi", "qualname": "OsmApi.flush", "type": "function", "doc": "

Force the changes to be uploaded to OSM and the changeset to be closed

\n\n

If no authentication information are provided,\nOsmApi.UsernamePasswordMissingError is raised.

\n\n

If there is no open changeset,\nOsmApi.NoChangesetOpenError is raised.

\n\n

If there is already an open changeset,\nOsmApi.ChangesetAlreadyOpenError is raised.

\n", "parameters": ["self"], "funcdef": "def"}, "osmapi.errors": {"fullname": "osmapi.errors", "modulename": "osmapi.errors", "qualname": "", "type": "module", "doc": "

\n"}, "osmapi.errors.OsmApiError": {"fullname": "osmapi.errors.OsmApiError", "modulename": "osmapi.errors", "qualname": "OsmApiError", "type": "class", "doc": "

General OsmApi error class to provide a superclass for all other errors

\n"}, "osmapi.errors.MaximumRetryLimitReachedError": {"fullname": "osmapi.errors.MaximumRetryLimitReachedError", "modulename": "osmapi.errors", "qualname": "MaximumRetryLimitReachedError", "type": "class", "doc": "

Error when the maximum amount of retries is reached and we have to give up

\n"}, "osmapi.errors.UsernamePasswordMissingError": {"fullname": "osmapi.errors.UsernamePasswordMissingError", "modulename": "osmapi.errors", "qualname": "UsernamePasswordMissingError", "type": "class", "doc": "

Error when username or password is missing for an authenticated request

\n"}, "osmapi.errors.NoChangesetOpenError": {"fullname": "osmapi.errors.NoChangesetOpenError", "modulename": "osmapi.errors", "qualname": "NoChangesetOpenError", "type": "class", "doc": "

Error when an operation requires an open changeset, but currently\nno changeset _is_ open

\n"}, "osmapi.errors.ChangesetAlreadyOpenError": {"fullname": "osmapi.errors.ChangesetAlreadyOpenError", "modulename": "osmapi.errors", "qualname": "ChangesetAlreadyOpenError", "type": "class", "doc": "

Error when a user tries to open a changeset when there is already\nan open changeset

\n"}, "osmapi.errors.OsmTypeAlreadyExistsError": {"fullname": "osmapi.errors.OsmTypeAlreadyExistsError", "modulename": "osmapi.errors", "qualname": "OsmTypeAlreadyExistsError", "type": "class", "doc": "

Error when a user tries to create an object that already exsits

\n"}, "osmapi.errors.XmlResponseInvalidError": {"fullname": "osmapi.errors.XmlResponseInvalidError", "modulename": "osmapi.errors", "qualname": "XmlResponseInvalidError", "type": "class", "doc": "

Error if the XML response from the OpenStreetMap API is invalid

\n"}, "osmapi.errors.ApiError": {"fullname": "osmapi.errors.ApiError", "modulename": "osmapi.errors", "qualname": "ApiError", "type": "class", "doc": "

Error class, is thrown when an API request fails

\n"}, "osmapi.errors.ApiError.__init__": {"fullname": "osmapi.errors.ApiError.__init__", "modulename": "osmapi.errors", "qualname": "ApiError.__init__", "type": "function", "doc": "

\n", "parameters": ["self", "status", "reason", "payload"], "funcdef": "def"}, "osmapi.errors.ApiError.status": {"fullname": "osmapi.errors.ApiError.status", "modulename": "osmapi.errors", "qualname": "ApiError.status", "type": "variable", "doc": "

HTTP error code

\n"}, "osmapi.errors.ApiError.reason": {"fullname": "osmapi.errors.ApiError.reason", "modulename": "osmapi.errors", "qualname": "ApiError.reason", "type": "variable", "doc": "

Error message

\n"}, "osmapi.errors.ApiError.payload": {"fullname": "osmapi.errors.ApiError.payload", "modulename": "osmapi.errors", "qualname": "ApiError.payload", "type": "variable", "doc": "

Payload of API when this error occured

\n"}, "osmapi.errors.AlreadySubscribedApiError": {"fullname": "osmapi.errors.AlreadySubscribedApiError", "modulename": "osmapi.errors", "qualname": "AlreadySubscribedApiError", "type": "class", "doc": "

Error when a user tries to subscribe to a changeset\nthat she is already subscribed to

\n"}, "osmapi.errors.NotSubscribedApiError": {"fullname": "osmapi.errors.NotSubscribedApiError", "modulename": "osmapi.errors", "qualname": "NotSubscribedApiError", "type": "class", "doc": "

Error when user tries to unsubscribe from a changeset\nthat he is not subscribed to

\n"}, "osmapi.errors.ElementDeletedApiError": {"fullname": "osmapi.errors.ElementDeletedApiError", "modulename": "osmapi.errors", "qualname": "ElementDeletedApiError", "type": "class", "doc": "

Error when the requested element is deleted

\n"}, "osmapi.errors.ResponseEmptyApiError": {"fullname": "osmapi.errors.ResponseEmptyApiError", "modulename": "osmapi.errors", "qualname": "ResponseEmptyApiError", "type": "class", "doc": "

Error when the response to the request is empty

\n"}, "osmapi.errors.ChangesetClosedApiError": {"fullname": "osmapi.errors.ChangesetClosedApiError", "modulename": "osmapi.errors", "qualname": "ChangesetClosedApiError", "type": "class", "doc": "

Error if the the changeset in question has already been closed

\n"}, "osmapi.errors.NoteClosedApiError": {"fullname": "osmapi.errors.NoteClosedApiError", "modulename": "osmapi.errors", "qualname": "NoteClosedApiError", "type": "class", "doc": "

Error if the the note in question has already been closed

\n"}, "osmapi.errors.VersionMismatchApiError": {"fullname": "osmapi.errors.VersionMismatchApiError", "modulename": "osmapi.errors", "qualname": "VersionMismatchApiError", "type": "class", "doc": "

Error if the provided version does not match the database version\nof the element

\n"}, "osmapi.errors.PreconditionFailedApiError": {"fullname": "osmapi.errors.PreconditionFailedApiError", "modulename": "osmapi.errors", "qualname": "PreconditionFailedApiError", "type": "class", "doc": "

Error if the precondition of the operation was not met:

\n\n
    \n
  • When a way has nodes that do not exist or are not visible
  • \n
  • When a relation has elements that do not exist or are not visible
  • \n
  • When a node/way/relation is still used in a way/relation
  • \n
\n"}}, "docInfo": {"osmapi": {"qualname": 0, "fullname": 1, "doc": 0}, "osmapi.OsmApi": {"qualname": 0, "fullname": 2, "doc": 54}, "osmapi.OsmApi.OsmApi": {"qualname": 1, "fullname": 3, "doc": 7}, "osmapi.OsmApi.OsmApi.__init__": {"qualname": 2, "fullname": 4, "doc": 138}, "osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"qualname": 2, "fullname": 4, "doc": 8}, "osmapi.OsmApi.OsmApi.close": {"qualname": 2, "fullname": 4, "doc": 0}, "osmapi.OsmApi.OsmApi.Capabilities": {"qualname": 2, "fullname": 4, "doc": 64}, "osmapi.OsmApi.OsmApi.NodeGet": {"qualname": 2, "fullname": 4, "doc": 57}, "osmapi.OsmApi.OsmApi.NodeCreate": {"qualname": 2, "fullname": 4, "doc": 77}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"qualname": 2, "fullname": 4, "doc": 81}, "osmapi.OsmApi.OsmApi.NodeDelete": {"qualname": 2, "fullname": 4, "doc": 88}, "osmapi.OsmApi.OsmApi.NodeHistory": {"qualname": 2, "fullname": 4, "doc": 15}, "osmapi.OsmApi.OsmApi.NodeWays": {"qualname": 2, "fullname": 4, "doc": 45}, "osmapi.OsmApi.OsmApi.NodeRelations": {"qualname": 2, "fullname": 4, "doc": 51}, "osmapi.OsmApi.OsmApi.NodesGet": {"qualname": 2, "fullname": 4, "doc": 22}, "osmapi.OsmApi.OsmApi.WayGet": {"qualname": 2, "fullname": 4, "doc": 58}, "osmapi.OsmApi.OsmApi.WayCreate": {"qualname": 2, "fullname": 4, "doc": 79}, "osmapi.OsmApi.OsmApi.WayUpdate": {"qualname": 2, "fullname": 4, "doc": 75}, "osmapi.OsmApi.OsmApi.WayDelete": {"qualname": 2, "fullname": 4, "doc": 82}, "osmapi.OsmApi.OsmApi.WayHistory": {"qualname": 2, "fullname": 4, "doc": 15}, "osmapi.OsmApi.OsmApi.WayRelations": {"qualname": 2, "fullname": 4, "doc": 53}, "osmapi.OsmApi.OsmApi.WayFull": {"qualname": 2, "fullname": 4, "doc": 24}, "osmapi.OsmApi.OsmApi.WaysGet": {"qualname": 2, "fullname": 4, "doc": 22}, "osmapi.OsmApi.OsmApi.RelationGet": {"qualname": 2, "fullname": 4, "doc": 65}, "osmapi.OsmApi.OsmApi.RelationCreate": {"qualname": 2, "fullname": 4, "doc": 91}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"qualname": 2, "fullname": 4, "doc": 88}, "osmapi.OsmApi.OsmApi.RelationDelete": {"qualname": 2, "fullname": 4, "doc": 94}, "osmapi.OsmApi.OsmApi.RelationHistory": {"qualname": 2, "fullname": 4, "doc": 15}, "osmapi.OsmApi.OsmApi.RelationRelations": {"qualname": 2, "fullname": 4, "doc": 53}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"qualname": 2, "fullname": 4, "doc": 40}, "osmapi.OsmApi.OsmApi.RelationFull": {"qualname": 2, "fullname": 4, "doc": 31}, "osmapi.OsmApi.OsmApi.RelationsGet": {"qualname": 2, "fullname": 4, "doc": 22}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"qualname": 2, "fullname": 4, "doc": 74}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"qualname": 2, "fullname": 4, "doc": 21}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"qualname": 2, "fullname": 4, "doc": 21}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"qualname": 2, "fullname": 4, "doc": 22}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"qualname": 2, "fullname": 4, "doc": 27}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"qualname": 2, "fullname": 4, "doc": 13}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"qualname": 2, "fullname": 4, "doc": 16}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"qualname": 2, "fullname": 4, "doc": 75}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"qualname": 2, "fullname": 4, "doc": 75}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"qualname": 2, "fullname": 4, "doc": 75}, "osmapi.OsmApi.OsmApi.NotesGet": {"qualname": 2, "fullname": 4, "doc": 54}, "osmapi.OsmApi.OsmApi.NoteGet": {"qualname": 2, "fullname": 4, "doc": 27}, "osmapi.OsmApi.OsmApi.NoteCreate": {"qualname": 2, "fullname": 4, "doc": 7}, "osmapi.OsmApi.OsmApi.NoteComment": {"qualname": 2, "fullname": 4, "doc": 7}, "osmapi.OsmApi.OsmApi.NoteClose": {"qualname": 2, "fullname": 4, "doc": 11}, "osmapi.OsmApi.OsmApi.NoteReopen": {"qualname": 2, "fullname": 4, "doc": 17}, "osmapi.OsmApi.OsmApi.NotesSearch": {"qualname": 2, "fullname": 4, "doc": 33}, "osmapi.OsmApi.OsmApi.Map": {"qualname": 2, "fullname": 4, "doc": 11}, "osmapi.OsmApi.OsmApi.ParseOsm": {"qualname": 2, "fullname": 4, "doc": 10}, "osmapi.OsmApi.OsmApi.ParseOsc": {"qualname": 2, "fullname": 4, "doc": 12}, "osmapi.OsmApi.OsmApi.ParseNotes": {"qualname": 2, "fullname": 4, "doc": 26}, "osmapi.OsmApi.OsmApi.flush": {"qualname": 2, "fullname": 4, "doc": 23}, "osmapi.errors": {"qualname": 0, "fullname": 2, "doc": 0}, "osmapi.errors.OsmApiError": {"qualname": 1, "fullname": 3, "doc": 7}, "osmapi.errors.MaximumRetryLimitReachedError": {"qualname": 1, "fullname": 3, "doc": 7}, "osmapi.errors.UsernamePasswordMissingError": {"qualname": 1, "fullname": 3, "doc": 6}, "osmapi.errors.NoChangesetOpenError": {"qualname": 1, "fullname": 3, "doc": 9}, "osmapi.errors.ChangesetAlreadyOpenError": {"qualname": 1, "fullname": 3, "doc": 8}, "osmapi.errors.OsmTypeAlreadyExistsError": {"qualname": 1, "fullname": 3, "doc": 7}, "osmapi.errors.XmlResponseInvalidError": {"qualname": 1, "fullname": 3, "doc": 6}, "osmapi.errors.ApiError": {"qualname": 1, "fullname": 3, "doc": 6}, "osmapi.errors.ApiError.__init__": {"qualname": 2, "fullname": 4, "doc": 0}, "osmapi.errors.ApiError.status": {"qualname": 2, "fullname": 4, "doc": 3}, "osmapi.errors.ApiError.reason": {"qualname": 2, "fullname": 4, "doc": 2}, "osmapi.errors.ApiError.payload": {"qualname": 2, "fullname": 4, "doc": 4}, "osmapi.errors.AlreadySubscribedApiError": {"qualname": 1, "fullname": 3, "doc": 7}, "osmapi.errors.NotSubscribedApiError": {"qualname": 1, "fullname": 3, "doc": 6}, "osmapi.errors.ElementDeletedApiError": {"qualname": 1, "fullname": 3, "doc": 4}, "osmapi.errors.ResponseEmptyApiError": {"qualname": 1, "fullname": 3, "doc": 4}, "osmapi.errors.ChangesetClosedApiError": {"qualname": 1, "fullname": 3, "doc": 5}, "osmapi.errors.NoteClosedApiError": {"qualname": 1, "fullname": 3, "doc": 5}, "osmapi.errors.VersionMismatchApiError": {"qualname": 1, "fullname": 3, "doc": 7}, "osmapi.errors.PreconditionFailedApiError": {"qualname": 1, "fullname": 3, "doc": 16}}, "length": 75, "save": true}, "index": {"qualname": {"root": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}, "osmapi.OsmApi.OsmApi.close": {"tf": 1}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 52, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.OsmApiError": {"tf": 1}}, "df": 1}}}}}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}, "_": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "_": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.errors.ApiError.__init__": {"tf": 1}}, "df": 2}}}}}}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}}}, "p": {"docs": {"osmapi.OsmApi.OsmApi.Map": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.close": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}}, "df": 1}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}}, "df": 1}}}}}, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 1}}}}}}}}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}}, "df": 1}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ChangesetClosedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "o": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}}, "df": 1}}}}}}}}, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}}, "df": 1}}}}}}}}, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}}, "df": 1}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}}, "df": 1}}}}}}}, "w": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {"osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 1}}}}}}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}}, "df": 1}, "o": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1}}, "df": 1}}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.NoteClosedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}}, "df": 1}}}}}}}, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.NotSubscribedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.NoChangesetOpenError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}, "w": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}}, "df": 1}}}}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}}, "df": 1}}}, "f": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}}, "df": 1}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}}, "df": 1}}}, "f": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}}, "df": 1, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}}, "df": 1}}}}}}}}}, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}}, "df": 1}}}}}}}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.errors.ApiError.reason": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ResponseEmptyApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}}, "df": 1}, "c": {"docs": {"osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}}, "df": 1}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 1}}}}}}, "y": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.errors.ApiError.payload": {"tf": 1}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}}, "f": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 1}}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.UsernamePasswordMissingError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}}}}, "x": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.XmlResponseInvalidError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ApiError": {"tf": 1}, "osmapi.errors.ApiError.__init__": {"tf": 1}, "osmapi.errors.ApiError.status": {"tf": 1}, "osmapi.errors.ApiError.reason": {"tf": 1}, "osmapi.errors.ApiError.payload": {"tf": 1}}, "df": 5}}}}}}}, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.AlreadySubscribedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {"osmapi.errors.ApiError.status": {"tf": 1}}, "df": 1}}}}}, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ElementDeletedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.VersionMismatchApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}, "fullname": {"root": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"osmapi": {"tf": 1}, "osmapi.OsmApi": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.close": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1.7320508075688772}, "osmapi.errors": {"tf": 1}, "osmapi.errors.OsmApiError": {"tf": 1}, "osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}, "osmapi.errors.UsernamePasswordMissingError": {"tf": 1}, "osmapi.errors.NoChangesetOpenError": {"tf": 1}, "osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1}, "osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}, "osmapi.errors.XmlResponseInvalidError": {"tf": 1}, "osmapi.errors.ApiError": {"tf": 1}, "osmapi.errors.ApiError.__init__": {"tf": 1}, "osmapi.errors.ApiError.status": {"tf": 1}, "osmapi.errors.ApiError.reason": {"tf": 1}, "osmapi.errors.ApiError.payload": {"tf": 1}, "osmapi.errors.AlreadySubscribedApiError": {"tf": 1}, "osmapi.errors.NotSubscribedApiError": {"tf": 1}, "osmapi.errors.ElementDeletedApiError": {"tf": 1}, "osmapi.errors.ResponseEmptyApiError": {"tf": 1}, "osmapi.errors.ChangesetClosedApiError": {"tf": 1}, "osmapi.errors.NoteClosedApiError": {"tf": 1}, "osmapi.errors.VersionMismatchApiError": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 75, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.OsmApiError": {"tf": 1}}, "df": 1}}}}}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}, "_": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "_": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.errors.ApiError.__init__": {"tf": 1}}, "df": 2}}}}}}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}}}, "p": {"docs": {"osmapi.OsmApi.OsmApi.Map": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.close": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}}, "df": 1}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}}, "df": 1}}}}}, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 1}}}}}}}}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}}, "df": 1}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ChangesetClosedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "o": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}}, "df": 1}}}}}}}}, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}}, "df": 1}}}}}}}}, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}}, "df": 1}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}}, "df": 1}}}}}}}, "w": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {"osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 1}}}}}}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}}, "df": 1}, "o": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1}}, "df": 1}}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.NoteClosedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}}, "df": 1}}}}}}}, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.NotSubscribedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.NoChangesetOpenError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}, "w": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}}, "df": 1}}}}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}}, "df": 1}}}, "f": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}}, "df": 1}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}}, "df": 1}}}, "f": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}}, "df": 1, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}}, "df": 1}}}}}}}}}, "s": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}}, "df": 1}}}}}}}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.errors.ApiError.reason": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ResponseEmptyApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}}, "df": 1}, "c": {"docs": {"osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}}, "df": 1}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 1}}}}}}, "y": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.errors.ApiError.payload": {"tf": 1}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}}, "f": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 1}}}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors": {"tf": 1}, "osmapi.errors.OsmApiError": {"tf": 1}, "osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}, "osmapi.errors.UsernamePasswordMissingError": {"tf": 1}, "osmapi.errors.NoChangesetOpenError": {"tf": 1}, "osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1}, "osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}, "osmapi.errors.XmlResponseInvalidError": {"tf": 1}, "osmapi.errors.ApiError": {"tf": 1}, "osmapi.errors.ApiError.__init__": {"tf": 1}, "osmapi.errors.ApiError.status": {"tf": 1}, "osmapi.errors.ApiError.reason": {"tf": 1}, "osmapi.errors.ApiError.payload": {"tf": 1}, "osmapi.errors.AlreadySubscribedApiError": {"tf": 1}, "osmapi.errors.NotSubscribedApiError": {"tf": 1}, "osmapi.errors.ElementDeletedApiError": {"tf": 1}, "osmapi.errors.ResponseEmptyApiError": {"tf": 1}, "osmapi.errors.ChangesetClosedApiError": {"tf": 1}, "osmapi.errors.NoteClosedApiError": {"tf": 1}, "osmapi.errors.VersionMismatchApiError": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 21}}}}, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ElementDeletedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.UsernamePasswordMissingError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}}}}, "x": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.XmlResponseInvalidError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ApiError": {"tf": 1}, "osmapi.errors.ApiError.__init__": {"tf": 1}, "osmapi.errors.ApiError.status": {"tf": 1}, "osmapi.errors.ApiError.reason": {"tf": 1}, "osmapi.errors.ApiError.payload": {"tf": 1}}, "df": 5}}}}}}}, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.AlreadySubscribedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {"osmapi.errors.ApiError.status": {"tf": 1}}, "df": 1}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.VersionMismatchApiError": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}}}}, "doc": {"root": {"0": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 2}, "1": {"2": {"3": {"4": {"docs": {"osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}}, "df": 4}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 6}, "2": {"docs": {"osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}}, "df": 4}, "5": {"0": {"0": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}, "docs": {}, "df": 0}, "6": {"7": {"8": {"docs": {"osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}}, "df": 4}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {"osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}}, "df": 1}, "docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 3, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1.7320508075688772}, "osmapi.errors.OsmApiError": {"tf": 1}}, "df": 29}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}}, "df": 3}}}}}}}}}}}}}}}}}}}}}}}, "c": {"docs": {"osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}}, "df": 1}}, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1.4142135623730951}, "osmapi.errors.NoChangesetOpenError": {"tf": 1.4142135623730951}, "osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1.4142135623730951}}, "df": 22, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1.7320508075688772}, "osmapi.errors.XmlResponseInvalidError": {"tf": 1}}, "df": 3}}}}}}}}}, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "|": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "|": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3}}}}}}}}}}}}}}}}}, "|": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3}}}}}}, "r": {"docs": {"osmapi.errors.NoChangesetOpenError": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 2}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}}, "df": 10}}}}}, "b": {"docs": {}, "df": 0, "j": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}}, "df": 2}}}}}, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "n": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}}, "df": 1, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "|": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "|": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.7320508075688772}}, "df": 1}}}}}}}}}}}}}}}}}}}}}, "f": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}, "r": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}}, "df": 3}}}}}}}, "c": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.ApiError.payload": {"tf": 1}}, "df": 1}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi": {"tf": 1.7320508075688772}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}}, "df": 8}}}}, "a": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1.4142135623730951}}, "df": 2}}, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.errors.ApiError.reason": {"tf": 1}}, "df": 1}}}}, "t": {"docs": {"osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 1}}, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi": {"tf": 1}}, "df": 1}}, "k": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}, "n": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 3}}, "d": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.4142135623730951}}, "df": 11}}, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 2.449489742783178}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.4142135623730951}, "osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}}, "df": 7, "_": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}}}}}, "_": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 4}}, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 4}}}}}, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}, "osmapi.errors.VersionMismatchApiError": {"tf": 1}}, "df": 3}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.4142135623730951}}, "df": 5}}}}, "_": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 4}}, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 4}}}}}, "s": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.errors.UsernamePasswordMissingError": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}}, "df": 3}}}}}}}, "w": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}}}}}, "a": {"docs": {}, "df": 0, "y": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 17, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1.4142135623730951}}, "df": 6}}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1.4142135623730951}}, "df": 4, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1.4142135623730951}}, "df": 1}}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}}, "df": 1}}}}, "/": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 1}}}}}}, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}}, "df": 10}}}}}}, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 4}}}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"0": {"6": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}, "docs": {}, "df": 0}, "docs": {"osmapi.OsmApi": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 2}, "osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 2.23606797749979}, "osmapi.errors.XmlResponseInvalidError": {"tf": 1}, "osmapi.errors.ApiError": {"tf": 1}, "osmapi.errors.ApiError.payload": {"tf": 1}}, "df": 7}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}}, "df": 2, "c": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}, "c": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 6}}}}}, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}, "osmapi.errors.UsernamePasswordMissingError": {"tf": 1}}, "df": 21}}}}, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}}, "d": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1}}, "df": 3}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.4142135623730951}}, "df": 1}}}, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}, "osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1}, "osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}, "osmapi.errors.AlreadySubscribedApiError": {"tf": 1}, "osmapi.errors.ChangesetClosedApiError": {"tf": 1}, "osmapi.errors.NoteClosedApiError": {"tf": 1}}, "df": 20}}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}}, "df": 5}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}, "p": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}}, "df": 10}}, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.4142135623730951}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.errors.OsmApiError": {"tf": 1}}, "df": 1}}}}}}}}, "b": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 2}}}}, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {"osmapi.errors.AlreadySubscribedApiError": {"tf": 1.4142135623730951}, "osmapi.errors.NotSubscribedApiError": {"tf": 1}}, "df": 2}}}}}}}, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}}, "df": 2}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.4142135623730951}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.7320508075688772}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 1}}}}}, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}}, "df": 2}}}}, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 4}}}, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}, "z": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}}, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "f": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}}, "df": 3, "i": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 2}}}}}}}, "p": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}, "osmapi.errors.OsmApiError": {"tf": 1}, "osmapi.errors.VersionMismatchApiError": {"tf": 1}}, "df": 23}}}, "d": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}, "g": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}}, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 1}}}}}}}, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 39}}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.errors.UsernamePasswordMissingError": {"tf": 1}}, "df": 2, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}}}}}, "t": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 2}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 4}}}}, "s": {"docs": {"osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3}}, "i": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}, "y": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.errors.ApiError.payload": {"tf": 1}}, "df": 1}}}}}}, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1, "_": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}}}}}, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 3, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}, "c": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}}, "df": 4}}}, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}}, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}, "osmapi.errors.ElementDeletedApiError": {"tf": 1}, "osmapi.errors.VersionMismatchApiError": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 18, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}}, "df": 10}}}}}}}}}}}}}}}}}}}}}, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1.4142135623730951}}, "df": 4}}}, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}}, "df": 1}}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 2}}}, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.errors.ResponseEmptyApiError": {"tf": 1}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.OsmApiError": {"tf": 1.4142135623730951}, "osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}, "osmapi.errors.UsernamePasswordMissingError": {"tf": 1}, "osmapi.errors.NoChangesetOpenError": {"tf": 1}, "osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1}, "osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}, "osmapi.errors.XmlResponseInvalidError": {"tf": 1}, "osmapi.errors.ApiError": {"tf": 1}, "osmapi.errors.ApiError.status": {"tf": 1}, "osmapi.errors.ApiError.reason": {"tf": 1}, "osmapi.errors.ApiError.payload": {"tf": 1}, "osmapi.errors.AlreadySubscribedApiError": {"tf": 1}, "osmapi.errors.NotSubscribedApiError": {"tf": 1}, "osmapi.errors.ElementDeletedApiError": {"tf": 1}, "osmapi.errors.ResponseEmptyApiError": {"tf": 1}, "osmapi.errors.ChangesetClosedApiError": {"tf": 1}, "osmapi.errors.NoteClosedApiError": {"tf": 1}, "osmapi.errors.VersionMismatchApiError": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 19}}}}}, "f": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}}, "df": 2}}}}}}, "l": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}}, "df": 3}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi": {"tf": 1.4142135623730951}}, "df": 1}}, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}, "osmapi.errors.ApiError": {"tf": 1}}, "df": 2}}}, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {"osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 1}}}}, "g": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "b": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}}, "df": 1, "n": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 3}}}}, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.errors.OsmApiError": {"tf": 1}}, "df": 2}}}}, "p": {"docs": {}, "df": 0, "x": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.4142135623730951}}, "df": 1}}, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}}, "df": 1}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 20}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1, "i": {"docs": {"osmapi.OsmApi.OsmApi": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.errors.XmlResponseInvalidError": {"tf": 1}}, "df": 1}}}}}}, "d": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 2.449489742783178}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 2.449489742783178}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 2.449489742783178}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 2.449489742783178}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 2.6457513110645907}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 2.6457513110645907}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 28, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}}, "df": 16}}}}}}, "|": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3}}}}}}, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 2}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 2}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 2}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 23, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 3.605551275463989}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 3.4641016151377544}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 3.4641016151377544}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 3.4641016151377544}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1.7320508075688772}, "osmapi.errors.NoChangesetOpenError": {"tf": 1.4142135623730951}, "osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1.4142135623730951}, "osmapi.errors.AlreadySubscribedApiError": {"tf": 1}, "osmapi.errors.NotSubscribedApiError": {"tf": 1}, "osmapi.errors.ChangesetClosedApiError": {"tf": 1}}, "df": 35, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "s": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}, "m": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}}}}, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 10}}}}}}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}}, "df": 13}}}}}}}}}}}}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 7}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}}, "df": 2}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 4}}}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}}, "df": 1}}}}}}}}}}, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi": {"tf": 1.4142135623730951}, "osmapi.errors.OsmApiError": {"tf": 1}, "osmapi.errors.ApiError": {"tf": 1}}, "df": 3}}}, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}, "osmapi.errors.ChangesetClosedApiError": {"tf": 1}, "osmapi.errors.NoteClosedApiError": {"tf": 1}}, "df": 25, "d": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 4}}}}}}}, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}}}, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}}, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}}, "df": 12}}}}}, "m": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 8, "s": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 4}}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.errors.ApiError.status": {"tf": 1}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}, "osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}}, "df": 9, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "_": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 4}}}}, "|": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "|": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}}, "df": 3}}}}}}}}}}}}}}}, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 7}}}}}}, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}}, "df": 1}}}}}}}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}, "l": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 2}}, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.errors.NoChangesetOpenError": {"tf": 1}}, "df": 3}}}}}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 2}}}}, "c": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 41, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "_": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}}}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}}, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 3}}}}}}, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 2}, "osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}}, "df": 2}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 3}}}, "v": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}, "b": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "g": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}, "osmapi.errors.ElementDeletedApiError": {"tf": 1}}, "df": 11}}}, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}}, "df": 7}}}}}}}, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"osmapi.OsmApi.OsmApi.WayFull": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 9, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.errors.VersionMismatchApiError": {"tf": 1}}, "df": 2}}}, "|": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3}}}}}, "e": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3, "_": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3}}}}}}}, "y": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 2}}, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "'": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}}, "df": 1}}}, "w": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}}, "df": 2}}}}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.4142135623730951}, "osmapi.errors.VersionMismatchApiError": {"tf": 1.4142135623730951}}, "df": 23}}}}, "b": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}, "u": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 2}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1.4142135623730951}}, "df": 17}}}}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}, "osmapi.errors.NoteClosedApiError": {"tf": 1}}, "df": 10, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}}, "df": 1}}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 2.8284271247461903}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 3}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 3}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 16, "i": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.4142135623730951}}, "df": 4, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1.4142135623730951}}, "df": 1}}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}}, "df": 1}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1.4142135623730951}}, "df": 5}}}}, "|": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "|": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}}, "df": 15}}}}}}}}, "/": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 12}}}}}}}}}}}}}}}}}}}, "d": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.4142135623730951}}, "df": 6}, "e": {"docs": {}, "df": 0, "w": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1}}, "df": 4}, "e": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 4}}}, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 19}}}}}, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "|": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 3}}}}}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}}, "df": 8, "/": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}}, "df": 2}}}}}}}}, "_": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "_": {"docs": {"osmapi.OsmApi": {"tf": 1.7320508075688772}}, "df": 1}}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "_": {"docs": {"osmapi.OsmApi": {"tf": 1.7320508075688772}}, "df": 1}, "s": {"docs": {}, "df": 0, "_": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}}}}}}}, "s": {"docs": {}, "df": 0, "_": {"docs": {"osmapi.errors.NoChangesetOpenError": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "_": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}}}}}}}}}}, "f": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "_": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}}}}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.4142135623730951}}, "df": 23}, "k": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}}, "df": 18}}}}}, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.4142135623730951}}, "df": 1}}}}}}, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}}, "df": 16}}}, "w": {"docs": {}, "df": 0, "o": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}}, "df": 2}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}}, "df": 2, "|": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 20}}}}}}}, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}}}}, "k": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}}, "df": 1}}}, "i": {"docs": {"osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1}, "osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}, "osmapi.errors.AlreadySubscribedApiError": {"tf": 1}, "osmapi.errors.NotSubscribedApiError": {"tf": 1}}, "df": 4}}, "h": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.errors.ApiError": {"tf": 1}}, "df": 1}}}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 2}, "osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 6, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.__init__": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 2}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 2}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1.7320508075688772}, "osmapi.errors.ChangesetAlreadyOpenError": {"tf": 1}, "osmapi.errors.OsmTypeAlreadyExistsError": {"tf": 1}, "osmapi.errors.AlreadySubscribedApiError": {"tf": 1}, "osmapi.errors.NotSubscribedApiError": {"tf": 1}}, "df": 29, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.errors.UsernamePasswordMissingError": {"tf": 1}}, "df": 22, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 19}}}}}}}}}}}}}}}}}}}}}}}}}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 24}}, "r": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}, "p": {"docs": {"osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}}, "df": 1, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1}}, "df": 3}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}}, "df": 18}}}}, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {"osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}}, "df": 15}}}, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {"osmapi.errors.NotSubscribedApiError": {"tf": 1}}, "df": 1}}}}}}}}}}, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}}, "df": 5, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 8}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}}, "df": 3}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.7320508075688772}}, "df": 16}}}, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}}, "df": 5, "g": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1.7320508075688772}}, "df": 8}}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 2}}}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 27}}, "n": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 2}}}}, "e": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1.4142135623730951}}, "df": 2}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 2.449489742783178}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 2.449489742783178}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1.7320508075688772}, "osmapi.errors.PreconditionFailedApiError": {"tf": 1}}, "df": 13, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1.4142135623730951}}, "df": 8}}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1.4142135623730951}}, "df": 5, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1.4142135623730951}}, "df": 1}}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}}, "df": 1}}}}, "f": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}}, "df": 1, "l": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}, "f": {"docs": {"osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}}, "df": 7, "\"": {"docs": {}, "df": 0, ":": {"1": {"2": {"3": {"docs": {"osmapi.OsmApi": {"tf": 1}}, "df": 1}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {}, "df": 0}}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {"osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}}, "df": 7}}}}}}, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}, "osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}}, "df": 2}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeWays": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.WaysGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationHistory": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetDownload": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetsGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.NoteGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteComment": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsm": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseOsc": {"tf": 1}, "osmapi.OsmApi.OsmApi.ParseNotes": {"tf": 1}}, "df": 46}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.MAX_RETRY_LIMIT": {"tf": 1}}, "df": 1}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}, "osmapi.errors.UsernamePasswordMissingError": {"tf": 1}, "osmapi.errors.ApiError": {"tf": 1}, "osmapi.errors.ElementDeletedApiError": {"tf": 1}, "osmapi.errors.ResponseEmptyApiError": {"tf": 1}}, "df": 13}}}, "i": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.errors.NoChangesetOpenError": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 3}}}, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.errors.XmlResponseInvalidError": {"tf": 1}, "osmapi.errors.ResponseEmptyApiError": {"tf": 1}}, "df": 2}}}}}, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {"osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}}, "df": 2}}}}, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"osmapi.errors.MaximumRetryLimitReachedError": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.WayRelations": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.RelationRelations": {"tf": 1.4142135623730951}}, "df": 8}}}, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {"osmapi.OsmApi.OsmApi.NodeGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.NodeDelete": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.WayDelete": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.WayFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationUpdate": {"tf": 2}, "osmapi.OsmApi.OsmApi.RelationDelete": {"tf": 2.23606797749979}, "osmapi.OsmApi.OsmApi.RelationFullRecur": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationFull": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUpdate": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetCreate": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetClose": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.ChangesetUpload": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetComment": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.ChangesetSubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.ChangesetUnsubscribe": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteClose": {"tf": 1}, "osmapi.OsmApi.OsmApi.NoteReopen": {"tf": 1.4142135623730951}, "osmapi.OsmApi.OsmApi.flush": {"tf": 1.7320508075688772}}, "df": 25}}}}, "h": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1.4142135623730951}, "osmapi.errors.ApiError.status": {"tf": 1}}, "df": 2, "s": {"docs": {}, "df": 0, ":": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}}}, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}}}}}, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"osmapi.OsmApi.OsmApi.__init__": {"tf": 1}}, "df": 1}}}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi.OsmApi.WayGet": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"osmapi.OsmApi.OsmApi.NodeCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.WayCreate": {"tf": 1}, "osmapi.OsmApi.OsmApi.RelationCreate": {"tf": 1}}, "df": 3}}}, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}}, "df": 2}}}, "x": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1}, "osmapi.OsmApi.OsmApi.Map": {"tf": 1}}, "df": 2}}, "u": {"docs": {}, "df": 0, "g": {"docs": {"osmapi.OsmApi.OsmApi.NotesGet": {"tf": 1.7320508075688772}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1.7320508075688772}}, "df": 2}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {"osmapi.OsmApi.OsmApi.Capabilities": {"tf": 1}, "osmapi.OsmApi.OsmApi.NotesSearch": {"tf": 1}}, "df": 2}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"osmapi.errors.ChangesetClosedApiError": {"tf": 1}, "osmapi.errors.NoteClosedApiError": {"tf": 1}}, "df": 2}}}}}}}}, "x": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "l": {"docs": {"osmapi.errors.XmlResponseInvalidError": {"tf": 1}}, "df": 1}}}}}}, "pipeline": ["trimmer", "stopWordFilter", "stemmer"], "_isPrebuiltIndex": true}; + + // mirrored in build-search-index.js (part 1) + // Also split on html tags. this is a cheap heuristic, but good enough. + elasticlunr.tokenizer.setSeperator(/[\s\-.;&]+|<[^>]*>/); + + let searchIndex; + if (docs._isPrebuiltIndex) { + console.info("using precompiled search index"); + searchIndex = elasticlunr.Index.load(docs); + } else { + console.time("building search index"); + // mirrored in build-search-index.js (part 2) + searchIndex = elasticlunr(function () { + this.addField("qualname"); + this.addField("fullname"); + this.addField("doc"); + this.setRef("fullname"); + }); + for (let doc of docs) { + searchIndex.addDoc(doc); + } + console.timeEnd("building search index"); + } + + return (term) => searchIndex.search(term, { + fields: { + qualname: {boost: 4}, + fullname: {boost: 2}, + doc: {boost: 1}, + }, + expand: true + }); +})(); \ No newline at end of file diff --git a/osmapi/__init__.py b/osmapi/__init__.py index 16c0542..6362e2e 100644 --- a/osmapi/__init__.py +++ b/osmapi/__init__.py @@ -1,4 +1,4 @@ -__version__ = '2.0.0' +__version__ = '2.0.1' from .OsmApi import * # noqa from .errors import * # noqa diff --git a/requirements.txt b/requirements.txt index c2c8d41..fa07c85 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,3 @@ -# This file lists the dependencies of this extension. -# Install with a command like: pip install -r pip-requirements.txt pdoc==8.0.1 Pygments==2.10.0 -pypandoc==1.6.4 requests==2.26.0 -Unidecode==1.3.2 diff --git a/setup.py b/setup.py index c881500..017363d 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from codecs import open -from setuptools import setup +from setuptools import setup, find_packages import re with open('osmapi/__init__.py', 'r') as fd: @@ -11,22 +11,16 @@ if not version: raise RuntimeError('Cannot find version information') -try: - import pypandoc - from unidecode import unidecode - description = open('README.md', encoding='utf-8').read() - description = unidecode(description) - description = pypandoc.convert(description, 'rst', format='md') -except (IOError, OSError, ImportError): - description = 'Python wrapper for the OSM API' +with open('README.md', 'r', encoding="utf-8") as f: + long_description = f.read() setup( name='osmapi', - packages=['osmapi'], + packages=find_packages(), version=version, install_requires=['requests'], description='Python wrapper for the OSM API', - long_description=description, + long_description=long_description, author='Etienne Chové', author_email='chove@crans.org', maintainer='Stefan Oderbolz', diff --git a/test-requirements.txt b/test-requirements.txt index 2671ee4..d18b7ed 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,8 +1,7 @@ -coverage -coveralls flake8 mock -nose -tox virtualenv xmltodict +pytest +pytest-cov +coverage diff --git a/tests/capabilities_test.py b/tests/capabilities_test.py index 9961528..dfa6cd6 100644 --- a/tests/capabilities_test.py +++ b/tests/capabilities_test.py @@ -1,13 +1,13 @@ from __future__ import (unicode_literals, absolute_import) -from . import osmapi_tests +from . import osmapi_test -class TestOsmApiNode(osmapi_tests.TestOsmApi): +class TestOsmApiNode(osmapi_test.TestOsmApi): def test_Capabilities(self): self._session_mock() result = self.api.Capabilities() - self.assertEquals(result, { + self.assertEqual(result, { 'area': {'maximum': 0.25}, 'changesets': {'maximum_elements': 50000.0}, 'status': { diff --git a/tests/changeset_tests.py b/tests/changeset_test.py similarity index 81% rename from tests/changeset_tests.py rename to tests/changeset_test.py index 68ca582..f7d35c4 100644 --- a/tests/changeset_tests.py +++ b/tests/changeset_test.py @@ -1,5 +1,5 @@ from __future__ import (unicode_literals, absolute_import) -from . import osmapi_tests +from . import osmapi_test import osmapi import mock import xmltodict @@ -42,17 +42,17 @@ def xmltosorteddict(xml): return recursive_sort(xml_dict) -class TestOsmApiChangeset(osmapi_tests.TestOsmApi): +class TestOsmApiChangeset(osmapi_test.TestOsmApi): def test_ChangesetGet(self): self._session_mock() result = self.api.ChangesetGet(123) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/changeset/123') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/changeset/123') - self.assertEquals(result, { + self.assertEqual(result, { 'id': 123, 'closed_at': datetime.datetime(2009, 9, 7, 22, 57, 37), 'created_at': datetime.datetime(2009, 9, 7, 21, 57, 36), @@ -86,21 +86,21 @@ def test_ChangesetUpdate(self): ) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/changeset/4444') - self.assertEquals( + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/changeset/4444') + self.assertEqual( xmltosorteddict(kwargs['data']), xmltosorteddict( b'\n' - b'\n' + b'\n' b' \n' b' \n' - b' \n' + b' \n' b' \n' b'\n' ) ) - self.assertEquals(result, 4444) + self.assertEqual(result, 4444) def test_ChangesetUpdate_with_created_by(self): self._session_mock(auth=True) @@ -119,13 +119,13 @@ def test_ChangesetUpdate_with_created_by(self): ) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/changeset/4444') - self.assertEquals( + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/changeset/4444') + self.assertEqual( xmltosorteddict(kwargs['data']), xmltosorteddict( b'\n' - b'\n' + b'\n' b' \n' b' \n' b' \n' @@ -133,12 +133,12 @@ def test_ChangesetUpdate_with_created_by(self): b'\n' ) ) - self.assertEquals(result, 4444) + self.assertEqual(result, 4444) def test_ChangesetUpdate_wo_changeset(self): self._session_mock() - with self.assertRaisesRegexp( + with self.assertRaisesRegex( osmapi.NoChangesetOpenError, 'No changeset currently opened'): self.api.ChangesetUpdate( @@ -157,21 +157,21 @@ def test_ChangesetCreate(self): ) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/changeset/create') - self.assertEquals( + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/changeset/create') + self.assertEqual( xmltosorteddict(kwargs['data']), xmltosorteddict( b'\n' - b'\n' + b'\n' b' \n' b' \n' - b' \n' + b' \n' b' \n' b'\n' ) ) - self.assertEquals(result, 4321) + self.assertEqual(result, 4321) def test_ChangesetCreate_with_created_by(self): self._session_mock(auth=True) @@ -184,13 +184,13 @@ def test_ChangesetCreate_with_created_by(self): ) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/changeset/create') - self.assertEquals( + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/changeset/create') + self.assertEqual( xmltosorteddict(kwargs['data']), xmltosorteddict( b'\n' - b'\n' + b'\n' b' \n' b' \n' b' \n' @@ -198,7 +198,7 @@ def test_ChangesetCreate_with_created_by(self): b'\n' ) ) - self.assertEquals(result, 1234) + self.assertEqual(result, 1234) def test_ChangesetCreate_with_open_changeset(self): self._session_mock(auth=True) @@ -209,7 +209,7 @@ def test_ChangesetCreate_with_open_changeset(self): } ) - with self.assertRaisesRegexp( + with self.assertRaisesRegex( osmapi.ChangesetAlreadyOpenError, 'Changeset already opened'): self.api.ChangesetCreate( @@ -230,14 +230,16 @@ def test_ChangesetClose(self): self.api.ChangesetClose() args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], - self.api_base + '/api/0.6/changeset/4444/close') + self.assertEqual(args[0], 'PUT') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/changeset/4444/close' + ) def test_ChangesetClose_with_no_changeset(self): self._session_mock() - with self.assertRaisesRegexp( + with self.assertRaisesRegex( osmapi.NoChangesetOpenError, 'No changeset currently opened'): self.api.ChangesetClose() @@ -269,14 +271,16 @@ def test_ChangesetUpload_create_node(self): result = self.api.ChangesetUpload(changesdata) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals(args[1], - self.api_base + '/api/0.6/changeset/4444/upload') - self.assertEquals( + self.assertEqual(args[0], 'POST') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/changeset/4444/upload' + ) + self.assertEqual( xmltosorteddict(kwargs['data']), xmltosorteddict( b'\n' - b'\n' + b'\n' b'\n' b' \n' @@ -288,15 +292,15 @@ def test_ChangesetUpload_create_node(self): ) ) - self.assertEquals(result[0]['type'], changesdata[0]['type']) - self.assertEquals(result[0]['action'], changesdata[0]['action']) + self.assertEqual(result[0]['type'], changesdata[0]['type']) + self.assertEqual(result[0]['action'], changesdata[0]['action']) data = result[0]['data'] - self.assertEquals(data['lat'], changesdata[0]['data']['lat']) - self.assertEquals(data['lon'], changesdata[0]['data']['lon']) - self.assertEquals(data['tag'], changesdata[0]['data']['tag']) - self.assertEquals(data['id'], 4295832900) - self.assertEquals(result[0]['data']['version'], 1) + self.assertEqual(data['lat'], changesdata[0]['data']['lat']) + self.assertEqual(data['lon'], changesdata[0]['data']['lon']) + self.assertEqual(data['tag'], changesdata[0]['data']['tag']) + self.assertEqual(data['id'], 4295832900) + self.assertEqual(result[0]['data']['version'], 1) def test_ChangesetUpload_modify_way(self): self._session_mock(auth=True) @@ -343,14 +347,16 @@ def test_ChangesetUpload_modify_way(self): result = self.api.ChangesetUpload(changesdata) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals(args[1], - self.api_base + '/api/0.6/changeset/4444/upload') - self.assertEquals( + self.assertEqual(args[0], 'POST') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/changeset/4444/upload' + ) + self.assertEqual( xmltosorteddict(kwargs['data']), xmltosorteddict( b'\n' - b'\n' + b'\n' b'\n' b' \n' @@ -378,14 +384,14 @@ def test_ChangesetUpload_modify_way(self): ) ) - self.assertEquals(result[0]['type'], changesdata[0]['type']) - self.assertEquals(result[0]['action'], changesdata[0]['action']) + self.assertEqual(result[0]['type'], changesdata[0]['type']) + self.assertEqual(result[0]['action'], changesdata[0]['action']) data = result[0]['data'] - self.assertEquals(data['nd'], changesdata[0]['data']['nd']) - self.assertEquals(data['tag'], changesdata[0]['data']['tag']) - self.assertEquals(data['id'], 4294967296) - self.assertEquals(data['version'], 3) + self.assertEqual(data['nd'], changesdata[0]['data']['nd']) + self.assertEqual(data['tag'], changesdata[0]['data']['tag']) + self.assertEqual(data['id'], 4294967296) + self.assertEqual(data['version'], 3) def test_ChangesetUpload_delete_relation(self): self._session_mock(auth=True) @@ -427,14 +433,16 @@ def test_ChangesetUpload_delete_relation(self): result = self.api.ChangesetUpload(changesdata) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals(args[1], - self.api_base + '/api/0.6/changeset/4444/upload') - self.assertEquals( + self.assertEqual(args[0], 'POST') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/changeset/4444/upload' + ) + self.assertEqual( xmltosorteddict(kwargs['data']), xmltosorteddict( b'\n' - b'\n' + b'\n' b'\n' b' \n' @@ -449,13 +457,13 @@ def test_ChangesetUpload_delete_relation(self): ) ) - self.assertEquals(result[0]['type'], changesdata[0]['type']) - self.assertEquals(result[0]['action'], changesdata[0]['action']) + self.assertEqual(result[0]['type'], changesdata[0]['type']) + self.assertEqual(result[0]['action'], changesdata[0]['action']) data = result[0]['data'] - self.assertEquals(data['member'], changesdata[0]['data']['member']) - self.assertEquals(data['tag'], changesdata[0]['data']['tag']) - self.assertEquals(data['id'], 676) + self.assertEqual(data['member'], changesdata[0]['data']['member']) + self.assertEqual(data['tag'], changesdata[0]['data']['tag']) + self.assertEqual(data['id'], 676) self.assertNotIn('version', data) def test_ChangesetUpload_invalid_response(self): @@ -504,12 +512,14 @@ def test_ChangesetDownload(self): result = self.api.ChangesetDownload(23123) args, _ = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - self.api_base + '/api/0.6/changeset/23123/download') + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/changeset/23123/download' + ) - self.assertEquals(len(result), 16) - self.assertEquals( + self.assertEqual(len(result), 16) + self.assertEqual( result[1], { 'action': 'create', @@ -544,8 +554,8 @@ def test_ChangesetDownloadContainingUnicode(self): # original from openstreetmap.org result = self.api.ChangesetDownload(37393499) - self.assertEquals(len(result), 2) - self.assertEquals( + self.assertEqual(len(result), 2) + self.assertEqual( result[1], { 'action': 'create', @@ -577,8 +587,8 @@ def test_ChangesetsGet(self): ) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( dict(urlparse.parse_qsl(urlparse.urlparse(args[1])[4])), { 'display_name': 'metaodi', @@ -586,9 +596,9 @@ def test_ChangesetsGet(self): } ) - self.assertEquals(len(result), 10) + self.assertEqual(len(result), 10) - self.assertEquals(result[41417], { + self.assertEqual(result[41417], { 'closed_at': datetime.datetime(2014, 4, 29, 20, 25, 1), 'created_at': datetime.datetime(2014, 4, 29, 20, 25, 1), 'id': 41417, @@ -613,13 +623,13 @@ def test_ChangesetGetWithComment(self): result = self.api.ChangesetGet(52924, include_discussion=True) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( args[1], self.api_base + '/api/0.6/changeset/52924?include_discussion=true' ) - self.assertEquals(result, { + self.assertEqual(result, { 'id': 52924, 'closed_at': datetime.datetime(2015, 1, 1, 14, 54, 2), 'created_at': datetime.datetime(2015, 1, 1, 14, 54, 1), @@ -666,14 +676,16 @@ def test_ChangesetComment(self): ) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals(args[1], - self.api_base + '/api/0.6/changeset/123/comment') - self.assertEquals( + self.assertEqual(args[0], 'POST') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/changeset/123/comment' + ) + self.assertEqual( kwargs['data'], "text=test+comment" ) - self.assertEquals(result, { + self.assertEqual(result, { 'id': 123, 'closed_at': datetime.datetime(2009, 9, 7, 22, 57, 37), 'created_at': datetime.datetime(2009, 9, 7, 21, 57, 36), @@ -697,10 +709,12 @@ def test_ChangesetSubscribe(self): result = self.api.ChangesetSubscribe(123) args, _ = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals(args[1], - self.api_base + '/api/0.6/changeset/123/subscribe') - self.assertEquals(result, { + self.assertEqual(args[0], 'POST') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/changeset/123/subscribe' + ) + self.assertEqual(result, { 'id': 123, 'closed_at': datetime.datetime(2009, 9, 7, 22, 57, 37), 'created_at': datetime.datetime(2009, 9, 7, 21, 57, 36), @@ -724,8 +738,8 @@ def test_ChangesetSubscribeWhenAlreadySubscribed(self): with self.assertRaises(osmapi.AlreadySubscribedApiError) as cm: self.api.ChangesetSubscribe(52924) - self.assertEquals(cm.exception.status, 409) - self.assertEquals( + self.assertEqual(cm.exception.status, 409) + self.assertEqual( cm.exception.payload, "You are already subscribed to changeset 52924." ) @@ -736,10 +750,12 @@ def test_ChangesetUnsubscribe(self): result = self.api.ChangesetUnsubscribe(123) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals(args[1], - self.api_base + '/api/0.6/changeset/123/unsubscribe') - self.assertEquals(result, { + self.assertEqual(args[0], 'POST') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/changeset/123/unsubscribe' + ) + self.assertEqual(result, { 'id': 123, 'closed_at': datetime.datetime(2009, 9, 7, 22, 57, 37), 'created_at': datetime.datetime(2009, 9, 7, 21, 57, 36), @@ -763,8 +779,8 @@ def test_ChangesetUnsubscribeWhenNotSubscribed(self): with self.assertRaises(osmapi.NotSubscribedApiError) as cm: self.api.ChangesetUnsubscribe(52924) - self.assertEquals(cm.exception.status, 404) - self.assertEquals( + self.assertEqual(cm.exception.status, 404) + self.assertEqual( cm.exception.payload, "You are not subscribed to changeset 52924." ) diff --git a/tests/helper_tests.py b/tests/helper_test.py similarity index 75% rename from tests/helper_tests.py rename to tests/helper_test.py index defebad..82dac3d 100644 --- a/tests/helper_tests.py +++ b/tests/helper_test.py @@ -1,5 +1,5 @@ from __future__ import (unicode_literals, absolute_import) -from . import osmapi_tests +from . import osmapi_test import osmapi import mock import os @@ -12,7 +12,7 @@ ) -class TestOsmApiHelper(osmapi_tests.TestOsmApi): +class TestOsmApiHelper(osmapi_test.TestOsmApi): def setUp(self): super(TestOsmApiHelper, self).setUp() self.setupMock() @@ -34,8 +34,8 @@ def test_passwordfile_only(self): 'passwordfile.txt' ) my_api = osmapi.OsmApi(passwordfile=path) - self.assertEquals('testosm', my_api._username) - self.assertEquals('testpass', my_api._password) + self.assertEqual('testosm', my_api._username) + self.assertEqual('testpass', my_api._password) def test_passwordfile_with_user(self): path = os.path.join( @@ -44,8 +44,8 @@ def test_passwordfile_with_user(self): 'passwordfile.txt' ) my_api = osmapi.OsmApi(username='testuser', passwordfile=path) - self.assertEquals('testuser', my_api._username) - self.assertEquals('testuserpass', my_api._password) + self.assertEqual('testuser', my_api._username) + self.assertEqual('testuserpass', my_api._password) def test_passwordfile_with_colon(self): path = os.path.join( @@ -54,17 +54,17 @@ def test_passwordfile_with_colon(self): 'passwordfile_colon.txt' ) my_api = osmapi.OsmApi(username='testuser', passwordfile=path) - self.assertEquals('testuser', my_api._username) - self.assertEquals('test:userpass', my_api._password) + self.assertEqual('testuser', my_api._username) + self.assertEqual('test:userpass', my_api._password) def test_close_call(self): self.api.close() - self.assertEquals(self.api._session.close.call_count, 1) + self.assertEqual(self.api._session.close.call_count, 1) def test_close_context_manager(self): with osmapi.OsmApi() as my_api: my_api._session.close = mock.Mock() - self.assertEquals(my_api._session.close.call_count, 1) + self.assertEqual(my_api._session.close.call_count, 1) def test_http_request_get(self): response = self.api._http_request( @@ -79,8 +79,8 @@ def test_http_request_get(self): auth=None, data=None ) - self.assertEquals(response, "test response") - self.assertEquals(self.api._session.request.call_count, 1) + self.assertEqual(response, "test response") + self.assertEqual(self.api._session.request.call_count, 1) def test_http_request_put(self): data = "data" @@ -96,7 +96,7 @@ def test_http_request_put(self): data="data", auth=None ) - self.assertEquals(response, "test response") + self.assertEqual(response, "test response") def test_http_request_delete(self): data = "delete data" @@ -112,7 +112,7 @@ def test_http_request_delete(self): data="delete data", auth=None ) - self.assertEquals(response, "test response") + self.assertEqual(response, "test response") def test_http_request_auth(self): response = self.api._http_request( @@ -127,7 +127,7 @@ def test_http_request_auth(self): auth=('testuser', 'testpassword'), data=None ) - self.assertEquals(response, "test response") + self.assertEqual(response, "test response") def test_http_request_410_response(self): self.setupMock(410) @@ -138,9 +138,9 @@ def test_http_request_410_response(self): False, None ) - self.assertEquals(cm.exception.status, 410) - self.assertEquals(cm.exception.reason, "test reason") - self.assertEquals(cm.exception.payload, "test response") + self.assertEqual(cm.exception.status, 410) + self.assertEqual(cm.exception.reason, "test reason") + self.assertEqual(cm.exception.payload, "test response") def test_http_request_500_response(self): self.setupMock(500) @@ -151,6 +151,6 @@ def test_http_request_500_response(self): False, None ) - self.assertEquals(cm.exception.status, 500) - self.assertEquals(cm.exception.reason, "test reason") - self.assertEquals(cm.exception.payload, "test response") + self.assertEqual(cm.exception.status, 500) + self.assertEqual(cm.exception.reason, "test reason") + self.assertEqual(cm.exception.payload, "test response") diff --git a/tests/node_tests.py b/tests/node_test.py similarity index 75% rename from tests/node_tests.py rename to tests/node_test.py index 2ef86e3..b69cbf2 100644 --- a/tests/node_tests.py +++ b/tests/node_test.py @@ -1,21 +1,21 @@ from __future__ import (unicode_literals, absolute_import) -from . import osmapi_tests +from . import osmapi_test import osmapi import mock import datetime -class TestOsmApiNode(osmapi_tests.TestOsmApi): +class TestOsmApiNode(osmapi_test.TestOsmApi): def test_NodeGet(self): self._session_mock() result = self.api.NodeGet(123) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/node/123') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/node/123') - self.assertEquals(result, { + self.assertEqual(result, { 'id': 123, 'changeset': 15293, 'uid': 605, @@ -38,10 +38,10 @@ def test_NodeGet_with_version(self): result = self.api.NodeGet(123, NodeVersion=2) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/node/123/2') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/node/123/2') - self.assertEquals(result, { + self.assertEqual(result, { 'id': 123, 'changeset': 4152, 'uid': 605, @@ -105,17 +105,17 @@ def test_NodeCreate(self): cs = self.api.ChangesetCreate({ 'comment': 'This is a test dataset' }) - self.assertEquals(cs, 1111) + self.assertEqual(cs, 1111) result = self.api.NodeCreate(test_node) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/node/create') + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/node/create') - self.assertEquals(result['id'], 9876) - self.assertEquals(result['lat'], test_node['lat']) - self.assertEquals(result['lon'], test_node['lon']) - self.assertEquals(result['tag'], test_node['tag']) + self.assertEqual(result['id'], 9876) + self.assertEqual(result['lat'], test_node['lat']) + self.assertEqual(result['lon'], test_node['lon']) + self.assertEqual(result['tag'], test_node['tag']) def test_NodeCreate_wo_changeset(self): test_node = { @@ -127,7 +127,7 @@ def test_NodeCreate_wo_changeset(self): } } - with self.assertRaisesRegexp( + with self.assertRaisesRegex( osmapi.NoChangesetOpenError, 'need to open a changeset'): self.api.NodeCreate(test_node) @@ -149,7 +149,7 @@ def test_NodeCreate_existing_node(self): } } - with self.assertRaisesRegexp( + with self.assertRaisesRegex( osmapi.OsmTypeAlreadyExistsError, 'This node already exists'): self.api.NodeCreate(test_node) @@ -171,7 +171,7 @@ def test_NodeCreate_wo_auth(self): } } - with self.assertRaisesRegexp( + with self.assertRaisesRegex( osmapi.UsernamePasswordMissingError, 'Username/Password missing'): self.api.NodeCreate(test_node) @@ -194,7 +194,7 @@ def test_NodeCreate_with_exception(self): } } - with self.assertRaisesRegexp( + with self.assertRaisesRegex( osmapi.MaximumRetryLimitReachedError, 'Give up after 5 retries'): self.api.NodeCreate(test_node) @@ -221,18 +221,18 @@ def test_NodeUpdate(self): cs = self.api.ChangesetCreate({ 'comment': 'This is a test dataset' }) - self.assertEquals(cs, 1111) + self.assertEqual(cs, 1111) result = self.api.NodeUpdate(test_node) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/node/7676') + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/node/7676') - self.assertEquals(result['id'], 7676) - self.assertEquals(result['version'], 3) - self.assertEquals(result['lat'], test_node['lat']) - self.assertEquals(result['lon'], test_node['lon']) - self.assertEquals(result['tag'], test_node['tag']) + self.assertEqual(result['id'], 7676) + self.assertEqual(result['version'], 3) + self.assertEqual(result['lat'], test_node['lat']) + self.assertEqual(result['lon'], test_node['lon']) + self.assertEqual(result['tag'], test_node['tag']) def test_NodeUpdateWhenChangesetIsClosed(self): self._session_mock(auth=True, status=409) @@ -259,8 +259,8 @@ def test_NodeUpdateWhenChangesetIsClosed(self): with self.assertRaises(osmapi.ChangesetClosedApiError) as cm: self.api.NodeUpdate(test_node) - self.assertEquals(cm.exception.status, 409) - self.assertEquals( + self.assertEqual(cm.exception.status, 409) + self.assertEqual( cm.exception.payload, "The changeset 2222 was closed at 2021-11-20 09:42:47 UTC." ) @@ -290,8 +290,8 @@ def test_NodeUpdateConflict(self): with self.assertRaises(osmapi.VersionMismatchApiError) as cm: self.api.NodeUpdate(test_node) - self.assertEquals(cm.exception.status, 409) - self.assertEquals( + self.assertEqual(cm.exception.status, 409) + self.assertEqual( cm.exception.payload, "Version does not match the current database version of the element" ) @@ -312,15 +312,15 @@ def test_NodeDelete(self): cs = self.api.ChangesetCreate({ 'comment': 'This is a test dataset' }) - self.assertEquals(cs, 1111) + self.assertEqual(cs, 1111) result = self.api.NodeDelete(test_node) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'DELETE') - self.assertEquals(args[1], self.api_base + '/api/0.6/node/7676') - self.assertEquals(result['id'], 7676) - self.assertEquals(result['version'], 4) + self.assertEqual(args[0], 'DELETE') + self.assertEqual(args[1], self.api_base + '/api/0.6/node/7676') + self.assertEqual(result['id'], 7676) + self.assertEqual(result['version'], 4) def test_NodeHistory(self): self._session_mock() @@ -328,15 +328,15 @@ def test_NodeHistory(self): result = self.api.NodeHistory(123) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/node/123/history') - - self.assertEquals(len(result), 8) - self.assertEquals(result[4]['id'], 123) - self.assertEquals(result[4]['version'], 4) - self.assertEquals(result[4]['lat'], 51.8753146) - self.assertEquals(result[4]['lon'], -1.4857118) - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/node/123/history') + + self.assertEqual(len(result), 8) + self.assertEqual(result[4]['id'], 123) + self.assertEqual(result[4]['version'], 4) + self.assertEqual(result[4]['lat'], 51.8753146) + self.assertEqual(result[4]['lon'], -1.4857118) + self.assertEqual( result[4]['tag'], { 'empty': '', 'foo': 'bar', @@ -349,13 +349,13 @@ def test_NodeWays(self): result = self.api.NodeWays(234) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/node/234/ways') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/node/234/ways') - self.assertEquals(len(result), 1) - self.assertEquals(result[0]['id'], 60) - self.assertEquals(result[0]['changeset'], 61) - self.assertEquals( + self.assertEqual(len(result), 1) + self.assertEqual(result[0]['id'], 60) + self.assertEqual(result[0]['changeset'], 61) + self.assertEqual( result[0]['tag'], { 'highway': 'path', @@ -369,10 +369,10 @@ def test_NodeWaysNotExists(self): result = self.api.NodeWays(404) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], f'{self.api_base}/api/0.6/node/404/ways') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], f'{self.api_base}/api/0.6/node/404/ways') - self.assertEquals(len(result), 0) + self.assertEqual(len(result), 0) self.assertIsInstance(result, list) def test_NodeRelations(self): @@ -381,14 +381,16 @@ def test_NodeRelations(self): result = self.api.NodeRelations(4295668179) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - self.api_base + '/api/0.6/node/4295668179/relations') - - self.assertEquals(len(result), 1) - self.assertEquals(result[0]['id'], 4294968148) - self.assertEquals(result[0]['changeset'], 23123) - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/node/4295668179/relations' + ) + + self.assertEqual(len(result), 1) + self.assertEqual(result[0]['id'], 4294968148) + self.assertEqual(result[0]['changeset'], 23123) + self.assertEqual( result[0]['member'][1], { 'role': 'point', @@ -396,7 +398,7 @@ def test_NodeRelations(self): 'type': 'node', } ) - self.assertEquals( + self.assertEqual( result[0]['tag'], { 'type': 'fancy', @@ -409,13 +411,13 @@ def test_NodeRelationsUnusedElement(self): result = self.api.NodeRelations(4295668179) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( args[1], self.api_base + '/api/0.6/node/4295668179/relations' ) - self.assertEquals(len(result), 0) + self.assertEqual(len(result), 0) self.assertIsInstance(result, list) def test_NodesGet(self): @@ -424,12 +426,14 @@ def test_NodesGet(self): result = self.api.NodesGet([123, 345]) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - self.api_base + '/api/0.6/nodes?nodes=123,345') + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/nodes?nodes=123,345' + ) - self.assertEquals(len(result), 2) - self.assertEquals(result[123], { + self.assertEqual(len(result), 2) + self.assertEqual(result[123], { 'id': 123, 'changeset': 15293, 'uid': 605, @@ -445,7 +449,7 @@ def test_NodesGet(self): 'name': 'Berolina & Schule' }, }) - self.assertEquals(result[345], { + self.assertEqual(result[345], { 'id': 345, 'changeset': 244, 'timestamp': datetime.datetime(2009, 9, 12, 3, 22, 59), diff --git a/tests/notes_tests.py b/tests/notes_test.py similarity index 86% rename from tests/notes_tests.py rename to tests/notes_test.py index 856ab39..06e18df 100644 --- a/tests/notes_tests.py +++ b/tests/notes_test.py @@ -1,5 +1,5 @@ from __future__ import (unicode_literals, absolute_import) -from . import osmapi_tests +from . import osmapi_test from datetime import datetime import osmapi @@ -9,7 +9,7 @@ from urllib import parse as urlparse -class TestOsmApiNotes(osmapi_tests.TestOsmApi): +class TestOsmApiNotes(osmapi_test.TestOsmApi): def test_NotesGet(self): self._session_mock() @@ -21,18 +21,18 @@ def test_NotesGet(self): ) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') + self.assertEqual(args[0], 'GET') urlParts = urlparse.urlparse(args[1]) params = urlparse.parse_qs(urlParts.query) - self.assertEquals( + self.assertEqual( params['bbox'][0], '-1.499853,45.966790,-1.483181,52.471019' ) - self.assertEquals(params['limit'][0], '100') - self.assertEquals(params['closed'][0], '7') + self.assertEqual(params['limit'][0], '100') + self.assertEqual(params['closed'][0], '7') - self.assertEquals(len(result), 14) - self.assertEquals(result[2], { + self.assertEqual(len(result), 14) + self.assertEqual(result[2], { 'id': '231775', 'lon': -1.4929605, 'lat': 52.4107312, @@ -69,10 +69,10 @@ def test_NoteGet(self): result = self.api.NoteGet(1111) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/notes/1111') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/notes/1111') - self.assertEquals(result, { + self.assertEqual(result, { 'id': '1111', 'lon': 12.3133135, 'lat': 37.9305489, @@ -116,14 +116,14 @@ def test_NoteCreate(self): result = self.api.NoteCreate(note) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') + self.assertEqual(args[0], 'POST') urlParts = urlparse.urlparse(args[1]) params = urlparse.parse_qs(urlParts.query) - self.assertEquals(params['lat'][0], '47.123') - self.assertEquals(params['lon'][0], '8.432') - self.assertEquals(params['text'][0], 'This is a test') + self.assertEqual(params['lat'][0], '47.123') + self.assertEqual(params['lon'][0], '8.432') + self.assertEqual(params['text'][0], 'This is a test') - self.assertEquals(result, { + self.assertEqual(result, { 'id': '816', 'lat': 47.123, 'lon': 8.432, @@ -153,14 +153,14 @@ def test_NoteCreateAnonymous(self): result = self.api.NoteCreate(note) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') + self.assertEqual(args[0], 'POST') urlParts = urlparse.urlparse(args[1]) params = urlparse.parse_qs(urlParts.query) - self.assertEquals(params['lat'][0], '47.123') - self.assertEquals(params['lon'][0], '8.432') - self.assertEquals(params['text'][0], 'test 123') + self.assertEqual(params['lat'][0], '47.123') + self.assertEqual(params['lon'][0], '8.432') + self.assertEqual(params['text'][0], 'test 123') - self.assertEquals(result, { + self.assertEqual(result, { 'id': '842', 'lat': 58.3368222, 'lon': 25.8826183, @@ -185,13 +185,13 @@ def test_NoteComment(self): result = self.api.NoteComment(812, 'This is a comment') args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals( + self.assertEqual(args[0], 'POST') + self.assertEqual( args[1], self.api_base + '/api/0.6/notes/812/comment?text=This+is+a+comment' ) - self.assertEquals(result, { + self.assertEqual(result, { 'id': '812', 'lat': 47.123, 'lon': 8.432, @@ -224,13 +224,13 @@ def test_NoteCommentAnonymous(self): result = self.api.NoteComment(842, 'blubb') args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals( + self.assertEqual(args[0], 'POST') + self.assertEqual( args[1], self.api_base + '/api/0.6/notes/842/comment?text=blubb' ) - self.assertEquals(result, { + self.assertEqual(result, { 'id': '842', 'lat': 58.3368222, 'lon': 25.8826183, @@ -263,13 +263,13 @@ def test_NoteClose(self): result = self.api.NoteClose(814, 'Close this note!') args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals( + self.assertEqual(args[0], 'POST') + self.assertEqual( args[1], self.api_base + '/api/0.6/notes/814/close?text=Close+this+note%21' ) - self.assertEquals(result, { + self.assertEqual(result, { 'id': '815', 'lat': 47.123, 'lon': 8.432, @@ -302,14 +302,14 @@ def test_NoteReopen(self): result = self.api.NoteReopen(815, 'Reopen this note!') args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'POST') - self.assertEquals( + self.assertEqual(args[0], 'POST') + self.assertEqual( args[1], (self.api_base + '/api/0.6/notes/815/reopen?text=Reopen+this+note%21') ) - self.assertEquals(result, { + self.assertEqual(result, { 'id': '815', 'lat': 47.123, 'lon': 8.432, @@ -350,15 +350,15 @@ def test_NotesSearch(self): result = self.api.NotesSearch('street') args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') + self.assertEqual(args[0], 'GET') urlParts = urlparse.urlparse(args[1]) params = urlparse.parse_qs(urlParts.query) - self.assertEquals(params['q'][0], 'street') - self.assertEquals(params['limit'][0], '100') - self.assertEquals(params['closed'][0], '7') + self.assertEqual(params['q'][0], 'street') + self.assertEqual(params['limit'][0], '100') + self.assertEqual(params['closed'][0], '7') - self.assertEquals(len(result), 3) - self.assertEquals(result[1], { + self.assertEqual(len(result), 3) + self.assertEqual(result[1], { 'id': '788', 'lon': 11.96395, 'lat': 57.70301, diff --git a/tests/osmapi_tests.py b/tests/osmapi_test.py similarity index 100% rename from tests/osmapi_tests.py rename to tests/osmapi_test.py diff --git a/tests/relation_tests.py b/tests/relation_test.py similarity index 64% rename from tests/relation_tests.py rename to tests/relation_test.py index 9078495..c97ac62 100644 --- a/tests/relation_tests.py +++ b/tests/relation_test.py @@ -1,21 +1,21 @@ from __future__ import (unicode_literals, absolute_import) -from . import osmapi_tests +from . import osmapi_test import osmapi import mock import datetime -class TestOsmApiRelation(osmapi_tests.TestOsmApi): +class TestOsmApiRelation(osmapi_test.TestOsmApi): def test_RelationGet(self): self._session_mock() result = self.api.RelationGet(321) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/relation/321') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/relation/321') - self.assertEquals(result, { + self.assertEqual(result, { 'id': 321, 'changeset': 434, 'uid': 12, @@ -83,13 +83,13 @@ def test_RelationGet_with_version(self): result = self.api.RelationGet(765, 2) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/relation/765/2') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/relation/765/2') - self.assertEquals(result['id'], 765) - self.assertEquals(result['changeset'], 41378) - self.assertEquals(result['user'], 'metaodi') - self.assertEquals(result['tag']['source'], 'test') + self.assertEqual(result['id'], 765) + self.assertEqual(result['changeset'], 41378) + self.assertEqual(result['user'], 'metaodi') + self.assertEqual(result['tag']['source'], 'test') def test_RelationCreate(self): self._session_mock(auth=True) @@ -121,18 +121,18 @@ def test_RelationCreate(self): cs = self.api.ChangesetCreate({ 'comment': 'This is a test relation' }) - self.assertEquals(cs, 3333) + self.assertEqual(cs, 3333) result = self.api.RelationCreate(test_relation) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/relation/create') + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/relation/create') - self.assertEquals(result['id'], 8989) - self.assertEquals(result['version'], 1) - self.assertEquals(result['member'], test_relation['member']) - self.assertEquals(result['tag'], test_relation['tag']) + self.assertEqual(result['id'], 8989) + self.assertEqual(result['version'], 1) + self.assertEqual(result['member'], test_relation['member']) + self.assertEqual(result['tag'], test_relation['tag']) def test_RelationCreate_existing_node(self): # setup mock @@ -160,7 +160,7 @@ def test_RelationCreate_existing_node(self): ] } - with self.assertRaisesRegexp( + with self.assertRaisesRegex( osmapi.OsmTypeAlreadyExistsError, 'This relation already exists'): self.api.RelationCreate(test_relation) @@ -191,18 +191,18 @@ def test_RelationUpdate(self): cs = self.api.ChangesetCreate({ 'comment': 'This is a test relation' }) - self.assertEquals(cs, 3333) + self.assertEqual(cs, 3333) result = self.api.RelationUpdate(test_relation) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/relation/8989') + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/relation/8989') - self.assertEquals(result['id'], 8989) - self.assertEquals(result['version'], 42) - self.assertEquals(result['member'], test_relation['member']) - self.assertEquals(result['tag'], test_relation['tag']) + self.assertEqual(result['id'], 8989) + self.assertEqual(result['version'], 42) + self.assertEqual(result['member'], test_relation['member']) + self.assertEqual(result['tag'], test_relation['tag']) def test_RelationDelete(self): self._session_mock(auth=True) @@ -220,16 +220,16 @@ def test_RelationDelete(self): cs = self.api.ChangesetCreate({ 'comment': 'This is a test relation' }) - self.assertEquals(cs, 3333) + self.assertEqual(cs, 3333) result = self.api.RelationDelete(test_relation) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'DELETE') - self.assertEquals(args[1], self.api_base + '/api/0.6/relation/8989') + self.assertEqual(args[0], 'DELETE') + self.assertEqual(args[1], self.api_base + '/api/0.6/relation/8989') - self.assertEquals(result['id'], 8989) - self.assertEquals(result['version'], 43) + self.assertEqual(result['id'], 8989) + self.assertEqual(result['version'], 43) def test_RelationHistory(self): self._session_mock() @@ -237,20 +237,22 @@ def test_RelationHistory(self): result = self.api.RelationHistory(2470397) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - self.api_base + '/api/0.6/relation/2470397/history') - - self.assertEquals(len(result), 2) - self.assertEquals(result[1]['id'], 2470397) - self.assertEquals(result[1]['version'], 1) - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/relation/2470397/history' + ) + + self.assertEqual(len(result), 2) + self.assertEqual(result[1]['id'], 2470397) + self.assertEqual(result[1]['version'], 1) + self.assertEqual( result[1]['tag'], { 'restriction': 'only_straight_on', 'type': 'restriction', } ) - self.assertEquals(result[2]['version'], 2) + self.assertEqual(result[2]['version'], 2) def test_RelationRelations(self): self._session_mock() @@ -258,17 +260,18 @@ def test_RelationRelations(self): result = self.api.RelationRelations(1532552) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - (self.api_base + - '/api/0.6/relation/1532552/relations')) - - self.assertEquals(len(result), 1) - self.assertEquals(result[0]['id'], 1532553) - self.assertEquals(result[0]['version'], 85) - self.assertEquals(len(result[0]['member']), 120) - self.assertEquals(result[0]['tag']['type'], 'network') - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/relation/1532552/relations' + ) + + self.assertEqual(len(result), 1) + self.assertEqual(result[0]['id'], 1532553) + self.assertEqual(result[0]['version'], 85) + self.assertEqual(len(result[0]['member']), 120) + self.assertEqual(result[0]['tag']['type'], 'network') + self.assertEqual( result[0]['tag']['name'], 'Aargauischer Radroutennetz' ) @@ -279,13 +282,13 @@ def test_RelationRelationsUnusedElement(self): result = self.api.RelationRelations(1532552) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( args[1], f'{self.api_base}/api/0.6/relation/1532552/relations' ) - self.assertEquals(len(result), 0) + self.assertEqual(len(result), 0) self.assertIsInstance(result, list) def test_RelationFull(self): @@ -294,17 +297,19 @@ def test_RelationFull(self): result = self.api.RelationFull(2470397) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - self.api_base + '/api/0.6/relation/2470397/full') - - self.assertEquals(len(result), 11) - self.assertEquals(result[1]['data']['id'], 101142277) - self.assertEquals(result[1]['data']['version'], 8) - self.assertEquals(result[1]['type'], 'node') - self.assertEquals(result[10]['data']['id'], 2470397) - self.assertEquals(result[10]['data']['version'], 2) - self.assertEquals(result[10]['type'], 'relation') + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/relation/2470397/full' + ) + + self.assertEqual(len(result), 11) + self.assertEqual(result[1]['data']['id'], 101142277) + self.assertEqual(result[1]['data']['version'], 8) + self.assertEqual(result[1]['type'], 'node') + self.assertEqual(result[10]['data']['id'], 2470397) + self.assertEqual(result[10]['data']['version'], 2) + self.assertEqual(result[10]['type'], 'relation') def test_RelationsGet(self): self._session_mock() @@ -312,23 +317,23 @@ def test_RelationsGet(self): result = self.api.RelationsGet([1532552, 1532553]) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( args[1], - self.api_base + '/api/0.6/relations?relations=1532552,1532553' + f'{self.api_base}/api/0.6/relations?relations=1532552,1532553' ) - self.assertEquals(len(result), 2) - self.assertEquals(result[1532553]['id'], 1532553) - self.assertEquals(result[1532553]['version'], 85) - self.assertEquals(result[1532553]['user'], 'SimonPoole') - self.assertEquals(result[1532552]['id'], 1532552) - self.assertEquals(result[1532552]['visible'], True) - self.assertEquals(result[1532552]['tag']['route'], 'bicycle') + self.assertEqual(len(result), 2) + self.assertEqual(result[1532553]['id'], 1532553) + self.assertEqual(result[1532553]['version'], 85) + self.assertEqual(result[1532553]['user'], 'SimonPoole') + self.assertEqual(result[1532552]['id'], 1532552) + self.assertEqual(result[1532552]['visible'], True) + self.assertEqual(result[1532552]['tag']['route'], 'bicycle') def test_RelationFull_with_deleted_relation(self): self._session_mock(filenames=[], status=410) with self.assertRaises(osmapi.ElementDeletedApiError) as context: self.api.RelationFull(2911456) - self.assertEquals(410, context.exception.status) + self.assertEqual(410, context.exception.status) diff --git a/tests/way_tests.py b/tests/way_test.py similarity index 67% rename from tests/way_tests.py rename to tests/way_test.py index e3b0a17..16766d3 100644 --- a/tests/way_tests.py +++ b/tests/way_test.py @@ -1,21 +1,21 @@ from __future__ import (unicode_literals, absolute_import) -from . import osmapi_tests +from . import osmapi_test import osmapi import mock import datetime -class TestOsmApiWay(osmapi_tests.TestOsmApi): +class TestOsmApiWay(osmapi_test.TestOsmApi): def test_WayGet(self): self._session_mock() result = self.api.WayGet(321) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/way/321') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/way/321') - self.assertEquals(result, { + self.assertEqual(result, { 'id': 321, 'changeset': 298, 'uid': 12, @@ -54,13 +54,15 @@ def test_WayGet_with_version(self): result = self.api.WayGet(4294967296, 2) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - self.api_base + '/api/0.6/way/4294967296/2') + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/way/4294967296/2' + ) - self.assertEquals(result['id'], 4294967296) - self.assertEquals(result['changeset'], 41303) - self.assertEquals(result['user'], 'metaodi') + self.assertEqual(result['id'], 4294967296) + self.assertEqual(result['changeset'], 41303) + self.assertEqual(result['user'], 'metaodi') def test_WayGet_nodata(self): self._session_mock() @@ -88,17 +90,17 @@ def test_WayCreate(self): cs = self.api.ChangesetCreate({ 'comment': 'This is a test way' }) - self.assertEquals(cs, 2222) + self.assertEqual(cs, 2222) result = self.api.WayCreate(test_way) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/way/create') + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/way/create') - self.assertEquals(result['id'], 5454) - self.assertEquals(result['nd'], test_way['nd']) - self.assertEquals(result['tag'], test_way['tag']) + self.assertEqual(result['id'], 5454) + self.assertEqual(result['nd'], test_way['nd']) + self.assertEqual(result['tag'], test_way['tag']) def test_WayCreate_existing_node(self): # setup mock @@ -116,7 +118,7 @@ def test_WayCreate_existing_node(self): } } - with self.assertRaisesRegexp( + with self.assertRaisesRegex( osmapi.OsmTypeAlreadyExistsError, 'This way already exists'): self.api.WayCreate(test_way) @@ -142,18 +144,18 @@ def test_WayUpdate(self): cs = self.api.ChangesetCreate({ 'comment': 'This is a test way' }) - self.assertEquals(cs, 2222) + self.assertEqual(cs, 2222) result = self.api.WayUpdate(test_way) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'PUT') - self.assertEquals(args[1], self.api_base + '/api/0.6/way/876') + self.assertEqual(args[0], 'PUT') + self.assertEqual(args[1], self.api_base + '/api/0.6/way/876') - self.assertEquals(result['id'], 876) - self.assertEquals(result['version'], 7) - self.assertEquals(result['nd'], test_way['nd']) - self.assertEquals(result['tag'], test_way['tag']) + self.assertEqual(result['id'], 876) + self.assertEqual(result['version'], 7) + self.assertEqual(result['nd'], test_way['nd']) + self.assertEqual(result['tag'], test_way['tag']) def test_WayUpdatePreconditionFailed(self): self._session_mock(auth=True, status=412) @@ -179,8 +181,8 @@ def test_WayUpdatePreconditionFailed(self): with self.assertRaises(osmapi.PreconditionFailedApiError) as cm: self.api.WayUpdate(test_way) - self.assertEquals(cm.exception.status, 412) - self.assertEquals( + self.assertEqual(cm.exception.status, 412) + self.assertEqual( cm.exception.payload, ( "Way 876 requires the nodes with id in (11950), " @@ -204,15 +206,15 @@ def test_WayDelete(self): cs = self.api.ChangesetCreate({ 'comment': 'This is a test way delete' }) - self.assertEquals(cs, 2222) + self.assertEqual(cs, 2222) result = self.api.WayDelete(test_way) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'DELETE') - self.assertEquals(args[1], self.api_base + '/api/0.6/way/876') - self.assertEquals(result['id'], 876) - self.assertEquals(result['version'], 8) + self.assertEqual(args[0], 'DELETE') + self.assertEqual(args[1], self.api_base + '/api/0.6/way/876') + self.assertEqual(result['id'], 876) + self.assertEqual(result['version'], 8) def test_WayHistory(self): self._session_mock() @@ -220,14 +222,16 @@ def test_WayHistory(self): result = self.api.WayHistory(4294967296) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - self.api_base + '/api/0.6/way/4294967296/history') - - self.assertEquals(len(result), 2) - self.assertEquals(result[1]['id'], 4294967296) - self.assertEquals(result[1]['version'], 1) - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/way/4294967296/history' + ) + + self.assertEqual(len(result), 2) + self.assertEqual(result[1]['id'], 4294967296) + self.assertEqual(result[1]['version'], 1) + self.assertEqual( result[1]['tag'], { 'highway': 'unclassified', 'name': 'Stansted Road', @@ -240,14 +244,16 @@ def test_WayRelations(self): result = self.api.WayRelations(4295032193) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - self.api_base + '/api/0.6/way/4295032193/relations') - - self.assertEquals(len(result), 1) - self.assertEquals(result[0]['id'], 4294968148) - self.assertEquals(result[0]['changeset'], 23123) - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/way/4295032193/relations' + ) + + self.assertEqual(len(result), 1) + self.assertEqual(result[0]['id'], 4294968148) + self.assertEqual(result[0]['changeset'], 23123) + self.assertEqual( result[0]['member'][4], { 'role': '', @@ -255,7 +261,7 @@ def test_WayRelations(self): 'type': 'way', } ) - self.assertEquals( + self.assertEqual( result[0]['tag'], { 'type': 'fancy', @@ -268,13 +274,13 @@ def test_WayRelationsUnusedElement(self): result = self.api.WayRelations(4295032193) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals( + self.assertEqual(args[0], 'GET') + self.assertEqual( args[1], self.api_base + '/api/0.6/way/4295032193/relations' ) - self.assertEquals(len(result), 0) + self.assertEqual(len(result), 0) self.assertIsInstance(result, list) def test_WayFull(self): @@ -283,16 +289,16 @@ def test_WayFull(self): result = self.api.WayFull(321) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], self.api_base + '/api/0.6/way/321/full') + self.assertEqual(args[0], 'GET') + self.assertEqual(args[1], self.api_base + '/api/0.6/way/321/full') - self.assertEquals(len(result), 17) - self.assertEquals(result[0]['data']['id'], 11949) - self.assertEquals(result[0]['data']['changeset'], 298) - self.assertEquals(result[0]['type'], 'node') - self.assertEquals(result[16]['data']['id'], 321) - self.assertEquals(result[16]['data']['changeset'], 298) - self.assertEquals(result[16]['type'], 'way') + self.assertEqual(len(result), 17) + self.assertEqual(result[0]['data']['id'], 11949) + self.assertEqual(result[0]['data']['changeset'], 298) + self.assertEqual(result[0]['type'], 'node') + self.assertEqual(result[16]['data']['id'], 321) + self.assertEqual(result[16]['data']['changeset'], 298) + self.assertEqual(result[16]['type'], 'way') def test_WayFull_invalid_response(self): self._session_mock() @@ -306,11 +312,13 @@ def test_WaysGet(self): result = self.api.WaysGet([456, 678]) args, kwargs = self.api._session.request.call_args - self.assertEquals(args[0], 'GET') - self.assertEquals(args[1], - self.api_base + '/api/0.6/ways?ways=456,678') + self.assertEqual(args[0], 'GET') + self.assertEqual( + args[1], + f'{self.api_base}/api/0.6/ways?ways=456,678' + ) - self.assertEquals(len(result), 2) + self.assertEqual(len(result), 2) self.assertIs(type(result[456]), dict) self.assertIs(type(result[678]), dict) with self.assertRaises(KeyError): diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 4818d37..0000000 --- a/tox.ini +++ /dev/null @@ -1,7 +0,0 @@ -[tox] -envlist = py37,py38,py39 -[testenv] -commands=nosetests --verbose -deps = - -r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt