I'm developing a system which I want to locate different places. Have the database which contain some Latitude and longitude and want to compare with the one received from the GPS through GSM modem which are string. Example Latitude 3.23909S, Longitude 36.47961E. Assume I have in the database Latitude 3.24907S, Longitude 37.57899E as Location X and Latitude 2.98765S, Longitude 35.46769E as location Y. How can I compare and say that the string received from the GPS through GSM modem is greater than location Y or less than location X that in the database?
current I'm using
execproc.Parameters["@SearchValue1"].Value = Latitude.ToString();
execproc.Parameters["@SearchValue2"].Value = longitude.ToString();
drac = execproc.ExecuteReader();
if (drac.HasRows)
but this is only when they are equal.