Hi all,Can give any idea to set the range of 2D coordinate so that we can send mssg immediately if the tracked person exceed the set range , like idea below:
char lon_out[11]={'1','0','3','2','5','.','9','1','6','0','1'};
if(array1>=lat_out)
{
digitalWrite(ledPin2,LOW);
range_out();
}
However, I stuck now.
The longitude and latitude are numbers and should be compared as such. We mention this because in your example you are using a char array (lon_out) to store what appears to be a longitude.
By performing a quick online search, we found the following information about determining if a lon/lat position is inside a specified region: