问题描述
阅读Android和谷歌地图API V2,我只是发现通过半径/圆定义地理围栏。
reading the android and google maps Api v2, I've just found geofences defined by radius/circles.
我想知道是否有创建自定义的方式,即形状矩形或任何其它不规则形状。
I was wondering if there is a way to create custom shapes i.e. rectangles or any other irregular shapes.
我是刨栅栏的是一个公园。
I was planing to geofence the are of a park.
如果自定义形状的地理围栏是可能的,请让我知道的主题来学习。
If custom shape geofencing is possible, please let me know the topics to study.
谢谢
路德:-D
ThanksLuther :-D
推荐答案
由于3.1.36只有 Geofence.Builder.setCircularRegion
,所以它不是可以定义其他形状,但是API看起来像它可以在轻松扩展未来在谷歌的位置的球队。
As of 3.1.36 there is only Geofence.Builder.setCircularRegion
, so it's not possible to define other shapes, but the API looks like it could be extended easily in the future by the Location team in Google.
这篇关于地理围栏的形状,API第2版的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!