SocialHarvest / geobed

A simple, lightweight, embedded geocoder for Golang with city level accuracy
BSD 3-Clause "New" or "Revised" License
72 stars 25 forks source link

Set "score" threshold #5

Open tmaiaroto opened 9 years ago

tmaiaroto commented 9 years ago

Much of the scoring is to weed out same name cities in multiple locations. However, if the passed string query truly isn't a location, it may still match something superficially. So a threshold should be set so that if a score isn't of a certain amount, return an empty location value.