O
O
Optimus2015-03-14 12:14:44
In contact with
Optimus, 2015-03-14 12:14:44

Vkontakte API returns strange responses?

Query "need all cities from country 1":

https://api.vk.com/method/database.getCities?count=20&v=5.29&need_all=1&country_id=1&access_token=

Answer:
{"count":159094,"items":[
{"id":1,"title":"Moscow","important":1},
{"id":2,"title":"St. Petersburg","important":1},
{"id":1033593,"title":"01123","area":"Maloyaroslavetsky district","region":"Kaluga region"},
{"id":1057624 ,"title":"1 Autopark","area":"Podilskyi district","region":"Moscow region"}
What are the cities 01123 and 1 Autopark or whoever enters what in this field, no difference, VK just returns all options? Yes, and according to the registry, I remember in Russia something about 3500 cities and not 159094

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Rubanyuk, 2015-04-01
@pstn

Perhaps these are just cities that users entered, but they were not in the database of subjects of the Russian Federation. And vk
Well, you know, "city of happiness", "new york city", etc.
cf36e05032db4cbf8d72d328eb704a1f

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question