Your tip is great. But, the mini world that I have to create the app is a little different. The idea is that each service provider has its own location recorded in the bank, at the time of registration, and that the customer with his current location can have the closest distance, based on the locations previously recorded in the database.
But you only have to do it’s to create a database with the provider location. Then use the coordinate of that location as the goal point. Your current location is the start point. Then create a procedure for calculate the distances, and choose the closests one
2 Likes