Try azure maps https://azure.microsoft.com/en-us/products/azure-maps
How can I get latitude and longitude from an address in .net core mvc
I want to find distance between two locations so that I can calculate the price and amount of time that will be taken to reach the other location and for that I want latitude and longitude of both the locations so that I can calculate the distance between them.
Developer technologies | ASP.NET | ASP.NET Core
2 answers
Sort by: Most helpful
-
Bruce (SqlWork.com) 78,086 Reputation points Volunteer Moderator
2023-04-08T15:06:39.1633333+00:00 -
Anonymous
2023-04-13T07:46:06.1833333+00:00 Hi @Ishika Garg
I want latitude and longitude of both the locations so that I can calculate the distance between them.
For this issue, you have to use the map API, such as Azure Maps, Bing Maps. Generally, the Map API will provide related API method to get the latitude and longitude for an address, and then calculate the distance, travel time and so on.
For example, if using Azure Maps, you can refer to the following articles:
To get the latitude and longitude:Request latitude and longitude for an address (geocoding)
To get the distance, estimated travel time between an origin and a destination:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion