The simplest approach is to check every single point. Compute the distance from the user's location to every restaurant in the database, keep the ones that are close enough, and throw away the rest.
Everything in Starter, plus:
。业内人士推荐Line官方版本下载作为进阶阅读
// 桶内用插入排序(小数组效率高)
Follow topics & set alerts with myFT