I want to determine the geographic boundary beyond which the application will refuse to work. I already know how to do this with the square border of two lat / long pairs:
if ((dLAT.doubleValue() > 35.309171) || (dLAT.doubleValue() < 35.226442) || (dLON.doubleValue() < -92.790165) || (dLON.doubleValue() > -92.707081)) { LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(this); localBroadcastManager.sendBroadcast(new Intent("killapp")); }
I also know about geo lenses ... or enough to know that when geoprocessing, areas are defined as circles with a radius from one point.
But, as I said, I would like to determine the boundary that corresponds to reality:
For example, if there was an application that was NOT designed to work, if the user is outside of Kansas, it would be inappropriate to determine RADIUS, since the state of Kansas is not circular and its border is wavy.
I use Android for this, but I doubt it is really important for this issue.
Thanks for any help!
source share