How to send HTML geolocation latitude and longitude values from view to controller action method
I want a user to be able to get the closest user. So, I have to get the user’s longitude and latitude from the browser and send it to the OnPost action method below. Each time the user visits the website, the position is updated. NOTE: The point class which takes the coordinates in the controller, is from the NetTopologySuite library used for modelling and manipulating 2-dimensional linear geometry