Pouriya
Pouriya

Reputation: 25

How can I calculate distance between users using ASP.NET Core

I am creating a learning site.

How can I get the geographical distance between people on the site using IP ADDRESS with ASP.NET Core 5 ?

Upvotes: 1

Views: 925

Answers (1)

Jason Pan
Jason Pan

Reputation: 21972

Jackdaw's comment is useful, you can ask permission to get users's location, then you can calculate the distance.


And you also can get user location by ip address. Through the service of a third party, the latitude and longitude can be obtained, and then the position information can be obtained for calculation.

Find distance between 2 coordinates in .NET core

enter image description here

Upvotes: 3

Related Questions