Format a list of Points of Django to able visualization on: https://mobisoftinfotech.com/tools/plot-multiple-points-on-map/
from django.contrib.gis.geos import Point
sample_lat_lng = [
(19.0760,72.8777),
(18.5204,73.8567),
(40.7128,-74.0060),
(-33.9249,18.4241),
(-22.9068,-43.1729),
]
sample_points = [Point(x=lng, y=lat) for (lat, lng) in sample_lat_lng]
format_points_list_to_visualization(sample_points)
to_print (bool)
: print formatted string on terminal
formatted_string (str)
: points formatted as string