@ShaikhSajidAli What´s “foursquare api” ?
I don’t know if I open another topic or stay here.
I await the suggestions of the moderators.
As I have experience with databases, I designed the app the way I describe below.
What I have in mind to do the same thing as @welingtongoncalvesfranca:
- 1 app for users
- 1 app for sellers - owners
- 1 mysql database with tables: users, sellers.
- invoke a script, to record longitude and latitude, within the “location changed” method. This may not be necessary as the stores (restaurants, pharmacies, etc.) are in fixed places. This idea would be if the sellers were moving (UBER).
- Do a search in the SELECT database on what the user is looking for (PHP script) and return the stores that the user wants.
-The question is how to calculate the current distance from the user (location sensor) to the seller (pharmacy, restaurant) according to the address recorded in the database?
I found.
DistanceCalc : Calculate distance between two places from coordinates