geofencing

Do Geofences remain active in android after a device reboot

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 17:27:45
问题 I'm writing an application that needs to use geofencing for when someone enters/exits multiple sites over the lifetime of the application being installed. My implementation of geofencing (very similar to the second link below) is all working fine when I first install the application, both when moving in/out of the geofences and when using mock locations to simulate it, until a device is rebooted. On reboot neither mock locations nor actually physically moving in and out of a geofence appears

iOS Geofence CLCircularRegion monitoring. locationManager:didExitRegion does not seem to work as expected

喜欢而已 提交于 2019-11-26 09:06:44
问题 I am currently trying to get my app to monitor particular regions using CoreLocation however I am finding that it does not seem to work as expected, it seems to me that it cannot work with small a small radius set for each location i.e. 10m. I\'ve also put together a little test app which plots the circle radius on a map so I can visually see what is happening. The code I am using for monitoring locations is as follows: self.locationManager = [[CLLocationManager alloc] init]; self

How to draw a polygon around a polyline in JavaScript?

社会主义新天地 提交于 2019-11-26 08:25:15
问题 I want to draw a polygon around a polyline. The polyline in my case is a Google Maps direction and I need to show a polygon around it within the Google Maps canvas. First: For offsetting I use the JavaScript Clipper Library. I have the following polyline (route): I make an offset polygon below using Clipper: I have a working JS Bin example. The code is: <html> <head> <title>Javascript Clipper Library / Offset polyline</title> <script src=\"clipper.js\"></script> <script> function draw() { var