Geofence是什么

1)Geofence是什么

According to wikipedia, Geofence(也称地理围栏), “A geo-fence is a virtual perimeter for a real-world geographic area.”

A geo-fence could be dynamically generated—as in a radius around a store or point location. Or a geo-fence can be a predefined set of boundaries, like school attendance zones or neighborhood boundaries. Custom-digitized geofences are also in use.

 

2) Geofence可以用来做什么呢?

Geofencing, used with child location services, can notify parents when a child leaves a designated area.

当小孩离开预设的范围时,可以触发某个事件,比如发短信或者邮件告警。

These geo-fences when crossed by an equipped vehicle or person can trigger a warning to the user or operator via SMS or Email.

 

3)如何实现

A)

一种方式是采用别个写好的sdk,比如location-labs的sdk,包括android和iOS版本:

http://geofence.locationlabs.com/code.html

 

B)

一种方式就是自己实现相应的功能。

iOS5已经内置对Geofencinig的支持,

比如调用 startMonitoringForRegion:desiredAccuracy: method of your CLLocationManager object.

android通过调用 LocationManager里面的 requestLocationUpdates 等函数。

 

自己实现,也不复杂。

 

4)参考资料

 还有些Geolocation相关的API,参见: 5 Geolocation APIs You May Not Have Heard Of

转载于:https://www.cnblogs.com/wufawei/archive/2012/06/09/2543441.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值