S
S
Sergey Y2021-06-03 10:48:47
Django
Sergey Y, 2021-06-03 10:48:47

How to implement Geolocation in Django?

How to implement Geolocation in Django? you need to mark the location point on the map, bind it to the object and measure the distance for another point!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-06-03
@sergey-gornostaev

On the front, ask the user to access the browser 's Geolocation API . If allowed, then send the coordinates to a special backend endpoint or in the request header. If not allowed, use GeoIP on the backend .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question