Displaying restaurants nearby a user location within 5 kilometers in Django

Good morning Everyone,

I would like to display restaurants within 5 kilometers in using google maps api , How could I do it?

I have done the latitudes and longitudes calculs with haversine. But i don't know how rendering the result in django.


You don't really need django here, what you're looking for can be done using Google maps API and a map provider (Like Google maps) or Openstreetmap through Leaflet JS.

This is all mostly done with Javascript in a template.

There is a Python version of Leaflet, named folium, if you really want to stick with Python. Not sure you can do everything, as I'm not that familiar with it.

Back to Top