<reponame>towns-man/osm-gimmisn<gh_stars>0
#!/usr/bin/env python3
#
# Copyright 2020 <NAME>. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#

"""Compares OSM streets with reference ones and shows the diff."""

import sys

import areas
import config


def main() -> None:
    """Commandline interface."""
    workdir = config.Config.get_workdir()

    relation_name = sys.argv[1]

    relations = areas.Relations(workdir)
    relation = relations.get_relation(relation_name)
    only_in_osm = relation.get_additional_streets()

    for street in only_in_osm:
        print(street)


if __name__ == '__main__':
    main()

# vim:set shiftwidth=4 softtabstop=4 expandtab:

#!/usr/bin/env python3
#
# Copyright 2020 <NAME>. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#

"""Compares OSM streets with reference ones and shows the diff."""

import sys

import areas
import config


def main() -> None:
    """Commandline interface."""
    workdir = config.Config.get_workdir()

    relation_name = sys.argv[1]

    relations = areas.Relations(workdir)
    relation = relations.get_relation(relation_name)
    only_in_osm = relation.get_additional_streets()

    for street in only_in_osm:
        print(street)


if __name__ == '__main__':
    main()

# vim:set shiftwidth=4 softtabstop=4 expandtab:
#!/usr/bin/env python3 # # Copyright 2020 <NAME>. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Compares OSM streets with reference ones and shows the diff. Commandline interface. # vim:set shiftwidth=4 softtabstop=4 expandtab: