Third-party services are NOT interesting to me.

For example, the city of Ufa has a Soviet district, and it is located through a search, and its test site is highlighted.

We have, for example, the coordinates of a point in this area: [54.73554432816171, 55.98554909014894] .

Calling these methods geocode ( res_geo.getAddressLine (), res_geo.getLocalities (), res_geo.getThoroughfare (), res_geo.getPremise (), res_geo.getAdministrativeAreas () ) will give the following values, respectively:

Russia, Republic of Bashkortostan, Ufa, Ulitsa 8 Marta, 32/1 ["Ufa"] Ulitsa 8 Marta undefined (2) ["Republic of Bashkortostan", "Urban District Ufa"]

At the same time, there is no area of ​​the city, and, judging by api, there are no methods left to receive it. Sometimes it shows a neighborhood, but this is not what I need. Api version 2.1.

PS, stumbled upon links dimik. 1. jsfiddle.net/rL7bztfw 2. jsfiddle.net/rL7bztfw/1

1 - without specification, defines the area, 2 - with specification, does not define. (but there are other coordinates, in 1 case it is a circle, a road, without a specific address)

I tried without specifying myself, with specifying locality - there is no district. With the specification district - shows the neighborhood.

In .properties.get ('metaDataProperty'). GetAll (), too, there is no Soviet district

    1 answer 1

    kind = district returns the area by the second result.

    • Thanks, but I'm already using the LocationIQ. Here it is also necessary to adapt to a tough policy, use a separate api, although there is a standard with 99% necessary, but not returning 2, result ... - sinneren