1
likaci 2014-05-17 17:56:18 +08:00
好久不用百度的sdk了,应该提供类似的容差吧。不行的话直接比较两次的值也可以。
Android api 是可以的 public void requestLocationUpdates(long minTime, float minDistance, Criteria criteria, LocationListener listener) The minDistance parameter can also be used to control the frequency of location updates. If it is greater than 0 then the location provider will only send your application an update when the location has changed by at least minDistance meters, AND at least minTime milliseconds have passed. |
2
adeweb 2014-05-17 19:09:52 +08:00
计算经纬度的偏移量,小于某个范围就不记录。
|