Skip to content

Commit 4fc7c2e

Browse files
committed
Prepare 2.1.0 release
1 parent d2e5512 commit 4fc7c2e

2 files changed

Lines changed: 27 additions & 7 deletions

File tree

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ If you're coming from `2.0.0`, re-run the finalize step to update the SQL functi
4242
$ pipenv run bin/finalize_geocoder.py --db postgresql://geocoder:password@localhost/osmgeocoder
4343
```
4444

45+
### v2.1.0
46+
47+
- Add type hints to all interfaces
48+
- Add `_dict` variants for geocoding functions to get _raw_ data instead of formatted strings
49+
- Bugfix: Reading of custom opencage data file for address formatting was broken
50+
- Returned addresses now contain county and state if available
51+
4552
## TODO
4653

4754
- Return Attribution in API and in webservices
@@ -332,15 +339,27 @@ def __init__(self, db=None, db_handle=None, address_formatter_config=None, posta
332339
def forward(self, address, country=None, center=None):
333340
pass
334341

342+
def forward_dict(self, address, country=None, center=None):
343+
pass
344+
335345
def forward_structured(self, road=None, house_number=None, postcode=None, city=None, country=None, center=None):
336346
pass
337347

348+
def forward_structured_dict(self, road=None, house_number=None, postcode=None, city=None, country=None, center=None):
349+
pass
350+
338351
def reverse(self, lat, lon, radius=100, limit=10):
339352
pass
340353

354+
def reverse_dict(self, lat, lon, radius=100, limit=10):
355+
pass
356+
341357
def reverse_epsg3857(self, x, y, radius=100, limit=10):
342358
pass
343359

360+
def reverse_epsg3857_dict(self, x, y, radius=100, limit=10):
361+
pass
362+
344363
def predict_text(self, input):
345364
pass
346365
```
@@ -355,7 +374,7 @@ Initialize a geocoder, this will read all files to be used and set up the DB con
355374

356375
see __Config File__ above for more info.
357376

358-
#### `forward`
377+
#### `forward` and `forward_dict`
359378

360379
Geocode an address to a lat, lon location.
361380
- `address`: Address to code
@@ -364,7 +383,7 @@ Geocode an address to a lat, lon location.
364383

365384
This function is a generator which `yield`s the obtained results.
366385

367-
#### `forward_structured`
386+
#### `forward_structured` and `forward_structured_dict`
368387

369388
Geocode an address to a lat, lon location without using the address classifier, use this if your input is already structured.
370389
- `road`: (optional) Street/Road name
@@ -377,7 +396,7 @@ Geocode an address to a lat, lon location without using the address classifier,
377396
Be sure that at least one of `road`, `postcode` or `city` is filled, results are not predictable if none is set.
378397
This function is a generator which `yield`s the obtained results.
379398

380-
#### `reverse`
399+
#### `reverse` and `reverse_dict`
381400

382401
Geocode a lat, lon location into a readable address:
383402
- `lat`: Latitude to code
@@ -387,7 +406,7 @@ Geocode a lat, lon location into a readable address:
387406

388407
This function is a generator which `yield`s the obtained results.
389408

390-
#### `reverse_epsg3857`
409+
#### `reverse_epsg3857` and `reverse_epsg3857_dict`
391410

392411
Geocode a x, y location in EPGS 3857 projection (aka Web Mercator) into a readable address:
393412
- `x`: X coordinate

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='osmgeocoder',
9-
version='2.0.1',
9+
version='2.1.0',
1010
description='OpenStreetMap and OpenAddresses.io based geocoder',
1111
long_description='''
1212
Python implementation for a OSM / Openaddresses.io Geocoder.
@@ -35,9 +35,10 @@
3535
'License :: OSI Approved :: BSD License',
3636
'Programming Language :: Python',
3737
'Programming Language :: Python :: 3',
38-
'Programming Language :: Python :: 3.5',
39-
'Programming Language :: Python :: 3.6',
4038
'Programming Language :: Python :: 3.7',
39+
'Programming Language :: Python :: 3.8',
40+
'Programming Language :: Python :: 3.9',
41+
'Programming Language :: Python :: 3.10',
4142
'Operating System :: OS Independent'
4243
],
4344
keywords='osm openstreetmap geocoding geocoder openaddresses.io',

0 commit comments

Comments
 (0)