Answer the question
In order to leave comments, you need to log in
How to cluster markers on a Python/Django/GeoJSON stack?
Good afternoon!
Straight to the point. We are developing an API for a project using the Django/REST Framework/Postgresql stack . Some models have fields containing geodata (coordinates) in JSON format (using django-geojson ).
The user receives a request that contains a geovector (coordinates of the lower left and upper right points of the map), the size of the map in pixels, and the size of the cluster icon in pixels. He needs to give JSON like:
[
{
"cluster_id": 0,
"coordinates": [
37.6184755,
55.7582595
],
"ids": [
1,
2
]
}
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question