我正在使用在https://github.com/alexreisner/geocoder上找到的ruby geocoder gem。
我发现自己需要寻找附近城市到搜寻地点。我似乎找不到任何好的方法来做到这一点。例如,如果我要搜索多伦多:
Geocoder.search('Toronto, ON, Canada' { *any needed options *})
# Additional steps?
我希望能够获得汉密尔顿(Hamilton),密西沙加(Mississauga),布兰普顿(Brampton)等结果。
有什么办法吗?