symerio / pgeocode

Postal code geocoding and distance calculation
https://pgeocode.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
238 stars 58 forks source link

Fix error in latitude grouping when creating a unique postcode index #62

Closed hedi-guedidi closed 1 year ago

hedi-guedidi commented 2 years ago

Simple modification at line L254 that should solve issue #32 and issue #55. latitude was misspelled as "lattitude". With this misspelling the field latitude does figure in the valid_keys list and thus the average value of the latitude will be overwritten in line L260 with the first value seen in the source database and thus the coordinates are slightly shifted.

Closes #32 Closes #55

rth commented 1 year ago

Thanks for addressing this @hedi-guedidi !