android - How can i know if the lat and lng is in the specified range? -
Hello, using the condition of my user, it developed the Android app, to convert it to latitude and LNG, mine The user will also set a range (10km for this example), my user will do a search in my app, and I will search the web server in the places near my web server, the web server will return me the list of places , The question is. How do I know if latitude and LNG are in the specified range?
Ex:
User Status -14.84598758 / -17.54817477Status 1 -14.4451524 / -16.54654254 // Is it within 10 km range? Poistion 2 -14.8444477 / -17.54141587 // Also?Google Maps API v3 - Android here
Find the differences between the two Let us use it to calculate both the x values and the two values of both points, and the length of the hippotinus.
This will give you a radius for a cycle which is the most common type of gifens. A more efficient "square" area can be computed into database queries simply by comparing categories of X and Y, and can potentially be indexed for possible outcomes. For the purpose of reducing the intermediate results of the query in the database query, you can pre-order with a class (ABS (DIFF (X1, X2) and LT; Hypotinus and ABS (DIFF (Y1, Y2) After filtering; Hypotenuse) it can be translated into the category query in SQL to reduce the results.
Comments
Post a Comment