Skip to content

Commit

Permalink
Bumped version to 0.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Aug 11, 2023
1 parent ff24049 commit 794855e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion build_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion iceaddr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified iceaddr/resources/iceaddr.db
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
license="BSD",
Expand Down

0 comments on commit 794855e

Please sign in to comment.