How to get nearby cities using google maps api?

The task is to get all cities within a radius of 50km from a given point using google maps js api

1) the search of places nearbySearch - when specifying types: ['locality', 'administrative_area_level_3'] - returns only 2 cities for each request, and it is necessary to ALL cities in range. In dock did not find anything about it at all.
if the type is not to point and parse the response yourself - comes a maximum of 60 seats, which may not include all of the city.

2) a massive search radarSearch - you can't specify a city type comes with 200 seats, which again can not get of the city, and for each site it is necessary to send the request it place_id to determine the city or not - it's too expensive

3) made a lot of labels, put them on the borders of the viewport of the map and at some distance, check every geocoding is located in the city or not - another problem - Google does not geocode more than 5 points only at intervals of 2sec, it is not suitable

tell me what else can I try
July 2nd 19 at 13:46
2 answers
July 2nd 19 at 13:48
Solution
question solved by means of the api, if anyone is interested - orbitaria.ru function checkNearestCities
July 2nd 19 at 13:50
Quote from Wikipedia:
According to the results of the national census of 2010, the status of the city have 1100 settlements

You can just all the right attributes in all the cities of the Russian Federation to collect and find the closest API without any cards.
well, I not only cities of the Russian Federation was needed, and the Google API was connected at all, the entire project is the map. - Deion.Renne commented on July 2nd 19 at 13:53

Find more questions by tags JavaScriptGoogle Maps