地理围栏的形状,API第2版的android [英] Geofences shapes, API v2 android

查看:473
本文介绍了地理围栏的形状,API第2版的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读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

Thanks Luther :-D

推荐答案

由于3.1.36只有<一个href=\"http://developer.android.com/reference/com/google/android/gms/location/Geofence.Builder.html#setCircularRegion%28double,%20double,%20float%29\"相对=nofollow> 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆