There are 5 restaurants with diffrent longitudes and latitudes.
You current location is x.
And the application wants to find the 3 nearest restaurand to X.
the Question is:
Where and how shall I save the 5 restaurants with their longs and lats? in a database? array?
so that the 'distance calculation process' willl be as easy as possible.
You current location is x.
And the application wants to find the 3 nearest restaurand to X.
the Question is:
Where and how shall I save the 5 restaurants with their longs and lats? in a database? array?
so that the 'distance calculation process' willl be as easy as possible.