@@ -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
332339def forward (self , address , country = None , center = None ):
333340 pass
334341
342+ def forward_dict (self , address , country = None , center = None ):
343+ pass
344+
335345def 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+
338351def 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+
341357def 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+
344363def 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
356375see __ Config File__ above for more info.
357376
358- #### ` forward `
377+ #### ` forward ` and ` forward_dict `
359378
360379Geocode 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
365384This function is a generator which ` yield ` s the obtained results.
366385
367- #### ` forward_structured `
386+ #### ` forward_structured ` and ` forward_structured_dict `
368387
369388Geocode 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,
377396Be sure that at least one of ` road ` , ` postcode ` or ` city ` is filled, results are not predictable if none is set.
378397This function is a generator which ` yield ` s the obtained results.
379398
380- #### ` reverse `
399+ #### ` reverse ` and ` reverse_dict `
381400
382401Geocode 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
388407This function is a generator which ` yield ` s the obtained results.
389408
390- #### ` reverse_epsg3857 `
409+ #### ` reverse_epsg3857 ` and ` reverse_epsg3857_dict `
391410
392411Geocode a x, y location in EPGS 3857 projection (aka Web Mercator) into a readable address:
393412- ` x ` : X coordinate
0 commit comments