diff --git a/README.md b/README.md index e8dff60..ab47294 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,14 @@ ### Look up Icelandic street addresses, postcodes and placenames `iceaddr` is a Python 3.7+ package to look up information about Icelandic streets, addresses, placenames, -landmarks, locations and postcodes. The underlying data is contained in a local database assembled +landmarks, locations and postcodes. The underlying data is contained in a local SQLite database assembled from the following sources: * [Staðfangaskrá](https://opingogn.is/dataset/stadfangaskra), the official Icelandic address registry maintained by [Registers Iceland](https://www.skra.is) (*Þjóðskra*, [CC-BY](http://opendefinition.org/licenses/cc-by/)) * [IS 50V Örnefni](https://opingogn.is/dataset/is-50v-ornefni-isn93) from the [National Land Survey of Iceland](https://www.lmi.is) (*Landmælingar Íslands*) * The postcode table provided by [Postur.is](https://www.postur.is/gogn/Gotuskra/postnumer.txt), with supplementary data from [Icelandic Wikipedia](https://is.wikipedia.org/wiki/Listi_yfir_%C3%ADslensk_p%C3%B3stn%C3%BAmer) -Since no networking takes place, lookups are fast and can be performed offline. The package is +Since no networking takes place, lookups are very fast and can be performed offline. The package is useful for geocoding and reverse geocoding of Icelandic addresses and placenames, as well as for validating addresses and postcodes. No external dependencies are required. @@ -269,6 +269,7 @@ python setup.py install ## Version History +* 0.5.6: Updated address and placename data. (11/08/2023) * 0.5.5: Updated address and placename data. Removed ISN93 coords. Now requires Python 3.7+ (11/12/2022) * 0.5.4: Updated address and placename data (09/11/2022) * 0.5.3: Updated address, postcode and placename data, various minor fixes (19/05/2022) diff --git a/build_db.py b/build_db.py index fc7dbbb..d80b9d2 100755 --- a/build_db.py +++ b/build_db.py @@ -117,7 +117,7 @@ def insert_address_entry(e: Dict, conn: sqlite3.Connection) -> None: try: qargs = [e[c.upper()] for c in COLS] - print(qargs) + # print(qargs) c = conn.cursor() c.execute("INSERT INTO stadfong VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)", qargs) except Exception as exc: @@ -159,6 +159,9 @@ def main() -> None: dbconn.commit() + print("\tInserting: %d\r" % cnt, end="") + sys.stdout.flush() + bytesize = os.stat(db_path).st_size human_size = humanize.naturalsize(bytesize) diff --git a/iceaddr/__init__.py b/iceaddr/__init__.py index 67a14fc..6c1d97b 100755 --- a/iceaddr/__init__.py +++ b/iceaddr/__init__.py @@ -8,7 +8,7 @@ """ __author__ = "Sveinbjorn Thordarson" -__version__ = "0.5.5" # Also update setup.py +__version__ = "0.5.6" # Also update setup.py from .addresses import * # noqa from .postcodes import * # noqa diff --git a/iceaddr/resources/iceaddr.db b/iceaddr/resources/iceaddr.db index d13c80c..782eb56 100644 Binary files a/iceaddr/resources/iceaddr.db and b/iceaddr/resources/iceaddr.db differ diff --git a/setup.py b/setup.py index a930470..7c0b788 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="iceaddr", - version="0.5.5", # Also update __init__.py + version="0.5.6", # Also update __init__.py author="Sveinbjorn Thordarson", author_email="sveinbjorn@sveinbjorn.org", license="BSD",