#!/usr/bin/env python3

import json

def getIds(j):
    ret = []
    for element in j["elements"]:
        if element["type"] != "way":
            continue

        assert "surface" in element["tags"].keys()
        ret.append(element["id"])

    return ret

new = json.load(open("mai.json"))
old = json.load(open("1honapja.json"))

newIds = getIds(new)
oldIds = getIds(old)

for id in newIds:
    if id in oldIds:
        continue

    print("%s only in new" % id)
