I found some duplicate cities with same Name (i.e. "Pagnacco") but very very close (i.e.: -) for the first result: "latitude": 46.11842, "longitude": 13.18003 -) for the second result: "latitude": 46.11462, "longitude": 13.18377
How can I ignore the duplicates from results? I want ony the city with the higher population.
You can use the query.first() method to retrieve only the first result to match your query, but if you wish to retrieve based on the highest population, you actually have two routes that you can follow: 1- Create a query that brings all the "Pagnacco" cities and loop through the results, selecting the highest population one, or 2 - Create a Cloud Code Function that performs this query and retrieve the result by calling this CCF. More about Cloud Code Functions here: https://docs.parseplatform.org/cloudcode/guide/#cloud-functions