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 Apache Flex Development mailing list archive at Nabble.com.


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 https://developers.arcgis.com/flex/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 would
be fairly easy to get the lat and long from the Air SDK and use the contains
method to determine whether the point is within your geofence. 



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Geo-fence-in-Flex-Action-Script-tp47043p47127.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


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 geofence coördinates.
IMO, you don't have to geofence. When you have the longlat's of your office, 
you can simply calculate the distance to this coördinate.
You need to detect if your employee is within range (circle), not within an 
specific area (geofence)

Dany

 Op 29-mei-2015, om 10:21 heeft ramu.bandarupalli 
 ramu.bandarupa...@applaudsolutions.com het volgende geschreven:
 
 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 longitude
 and latitude), Once the user enters into that fence area we will be enabling
 the above functionality.
 
 http://apache-flex-development.247.n4.nabble.com/file/n47121/images.jpg 
 
 Above is the sample image shows the geo-fence.
 
 
 Thanks.
 
 
 
 --
 View this message in context: 
 http://apache-flex-development.247.n4.nabble.com/Geo-fence-in-Flex-Action-Script-tp47043p47121.html
 Sent from the Apache Flex Development mailing list archive at Nabble.com.



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 straight
forward. AIR's access to the gps works good in both Android and iOS.

[1]http://snipplr.com/view/58443/



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Geo-fence-in-Flex-Action-Script-tp47043p47125.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


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 the
circle, you need to get circumference lt,lng points based on center.
This might help you:
http://stackoverflow.com/questions/17010464/draw-circle-using-latitude-and-longitude
http://www.geocodezip.com/v3_polygon_example_donut.html


On Fri, May 29, 2015 at 1:51 PM, ramu.bandarupalli 
ramu.bandarupa...@applaudsolutions.com wrote:

 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
 longitude
 and latitude), Once the user enters into that fence area we will be
 enabling
 the above functionality.

 
 http://apache-flex-development.247.n4.nabble.com/file/n47121/images.jpg
 

 Above is the sample image shows the geo-fence.


 Thanks.



 --
 View this message in context:
 http://apache-flex-development.247.n4.nabble.com/Geo-fence-in-Flex-Action-Script-tp47043p47121.html
 Sent from the Apache Flex Development mailing list archive at Nabble.com.



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 if you've got it wrong because you get an answer in 
light years or something.


Tom


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 sky.



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Geo-fence-in-Flex-Action-Script-tp47043p47133.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


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 kevin.god...@gmail.com
wrote:

 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 sky.



 --
 View this message in context:
 http://apache-flex-development.247.n4.nabble.com/Geo-fence-in-Flex-Action-Script-tp47043p47133.html
 Sent from the Apache Flex Development mailing list archive at Nabble.com.



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 that 
the maths for finding if a point is in a polygon is easy enough to 
locate I'd have thought ?


Tom

On 28/05/15 14:15, ramu.bandarupalli wrote:

Hi,

We have the requirement to develop Geo-fence on mobile devices based on
lang, lat positions.

Could you please, any one help me on how to develop the Geo-fence in Apache
Flex/Action Script.


Thanks in advance.



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Geo-fence-in-Flex-Action-Script-tp47043.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
__