Closed a-omsk closed 8 years ago
Locations with same coordinates (i.e located in one marker) should be returned as an array within object. If a location has unique coords, api must return a one-item-array;
for example:
[{ "id": 1, "coordinates": "54.9769240537932, 73.39931488037111", "name": "testetst", "type": "restaurant", "specification": "vegetarian" }, { "id": 2, "coordinates": "54.9769240537932, 73.39931488037111", "name": "Another test place", "type": "eatery", "specification": "vegetarian" } ]
[{ "id": 1, "coordinates": "54.9769240537932, 73.39931488037111", "locations": [{ "location_id": 1, "name": "testetst", "type": "restaurant", "specification": "vegetarian" }, { "location_id": 2, "name": "Another test place", "type": "eatery", "specification": "vegetarian" }] }]
Temporary solution was implemented, but we need high-performance sql solution for this issue, i think
Use dev branch instead of master! I'll try to look and do some on that way tomorrow.
done
Locations with same coordinates (i.e located in one marker) should be returned as an array within object. If a location has unique coords, api must return a one-item-array;
for example: