Re: Geo-fence in Flex/Action Script

2015-05-29 Thread Nicholas Kwiatkowski
A good GPS API (including the ones available in AIR) will tell you the current inaccuracies. If you have it set to "low resolution", it is often 1600 ft (it takes the measurements from the towers). -Nick On Fri, May 29, 2015 at 11:07 AM, kevin.godell wrote: > I just had another thought. You wi

Re: Geo-fence in Flex/Action Script

2015-05-29 Thread kevin.godell
I just had another thought. You will have to take into account for the inaccuracy reading reported by the device. The best reading that I ever get from my iPhone is plus/minus 16 feet, and that is on a good day with no clouds or rain, standing outside of my vehicle with direct line of sight to the

Re: Geo-fence in Flex/Action Script

2015-05-29 Thread Tom Chiverton
On 29/05/15 13:08, ramu.bandarupalli wrote: Could you please let me know where can i get the modified version of the code to get accurate distance. I've implemented http://en.wikipedia.org/wiki/Great-circle_distance#Computational_formulas in several languages over the years. It's fairly obvious

Re: Geo-fence in Flex/Action Script

2015-05-29 Thread ramu.bandarupalli
Thanks Kevin for your reply, Could you please let me know where can i get the modified version of the code to get accurate distance. Thanks. -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Geo-fence-in-Flex-Action-Script-tp47043p47128.html Sent from the

Re: Geo-fence in Flex/Action Script

2015-05-29 Thread quick6black
I have been using the ESRI Flex API for mapping in Flex mobile. If you check out the API reference and look at the Polygon class there is a "contains" method that returns a Boolean value based on whether a mappoint falls within the polygon. It w

Re: Geo-fence in Flex/Action Script

2015-05-29 Thread Deepak MS
>From what I understood, you have a latitude and a longitude point which serves as a center. And now you want to draw a circle (of some radius) around it. If its for iOS, there is an ANE: https://code.google.com/p/nativemaps-ane/ You can add poly lines over the map based on lat and lngs. To draw t

Re: Geo-fence in Flex/Action Script

2015-05-29 Thread kevin.godell
There is a nice piece of code[1] that you can utilize to measure distances between coordinates. I used a modified version in my app and it seems to be pretty accurate. If you are just basing your distances from the center point of your office, using the radius of the circle should be pretty straigh

Re: Geo-fence in Flex/Action Script

2015-05-29 Thread Dany Dhondt
I don't understand the problem you have. Sending geolocations to your server is quite straightforward. You don't even have to poll since your employees manually click a button to check in no? Your server side script could check if the geolocation which is send from your mobile app is within the

Re: Geo-fence in Flex/Action Script

2015-05-29 Thread ramu.bandarupalli
Hi, Thanks for the reply. Actually, we have the requirement like Clock in/Clock out functionality for mobile users thru our applications. Where users can perform these operation only if they are near to the office locations. So, we have to draw Geo-fence around the office location (based on longi

Re: Geo-fence in Flex/Action Script

2015-05-28 Thread Tom Chiverton
What exactly are you struggling with ? I've never had to access the GPS from Flex, but it should be straight forward to follow something like : http://www.adobe.com/devnet/air/quick_start_as/quickstarts/qs_as_geolocation_api.html Many databases then offer native co-ordinate operations, failing