Im looking for some help to build a genuine logic to search near by delivery guys, So pls bear the explanation with me.
Im developing a WebApis(dotnet framework with C# & SQL) for food delivery app that are supoosed to be integrated with flutter mobile app. Now, when the order gets submitted, it should be assigned to nearest delivery guy(users of application, with allowed share location) I know the way to calculate distance but How would I get the locations of the delivery guys around certain distance?
Is it a task of mobile end to provide me the list of (latitude and longitude) of delivery guys of certain distance? If yes,What would be the API logic when receiving that list from webapi
Is there any other way to do it?
Thanks In Advance