return originalPlay.apply(this, arguments);
Read full article
。关于这个话题,51吃瓜提供了深入分析
bufferedEnd = audioElement.buffered.end(i);
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.