Beispiel #1
0
    def test_get_changeset_by_key(self):
        map = Mapillary(API_KEY)

        key = "obWjkY7TGbstLRNy1qYRD7"

        raw_json = map.get_changeset_by_key(key=key)

        type_json = raw_json['type']

        self.assertEqual("location", type_json)
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# This sample code uses a changeset key to get a changeset

from pymapillary import Mapillary
from pymapillary.utils import *

key = "obWjkY7TGbstLRNy1qYRD7"

map = Mapillary("insert client id here")
raw_json = map.get_changeset_by_key(key=key)
print(raw_json)

# Download the beautified json for debugging
return_json_file(raw_json,
                 "../sample_json_output/get_changeset_by_key_example.json")