symerio / pgeocode

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

Implement query location method to search for place names #59

Closed cbiehl closed 1 year ago

cbiehl commented 2 years ago

This implements the Nominatim.query_location method for searching for place names with a simple string contains search and (if users install the thefuzz package) a fuzzy string search based on edit distance. Please let me know if you need any changes or unit tests to consider a merge.

Closes https://github.com/symerio/pgeocode/issues/29

cbiehl commented 2 years ago

@rth Ping

rth commented 2 years ago

Also let's add,

    extras_require={
        "fuzzy": ["thefuzz"],
    },

to setup.py to make it an optional dependency, and,

cbiehl commented 2 years ago

Thanks for the review! I'll push an update later this week.

rth commented 1 year ago

Thanks a lot @cbiehl !