Thanks for signing up!
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.
,详情可参考同城约会
更多精彩内容,关注钛媒体微信号(ID:taimeiti),或者下载钛媒体App
if(x != MAP_FAILED) return x;