Skip to content

Instantly share code, notes, and snippets.

@iskander-g
Last active May 30, 2020 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iskander-g/6c2bb24065708730c76993da4afea9d0 to your computer and use it in GitHub Desktop.
Save iskander-g/6c2bb24065708730c76993da4afea9d0 to your computer and use it in GitHub Desktop.
Ответы геокодеров
[
{
"source": "109012, г Москва, Тверской р-н, Красная пл, д 3",
"result": "г Москва, пл Красная, д 3",
"postal_code": "109012",
"country": "Россия",
"country_iso_code": "RU",
"federal_district": "Центральный",
"region_fias_id": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"region_kladr_id": "7700000000000",
"region_iso_code": "RU-MOW",
"region_with_type": "г Москва",
"region_type": "г",
"region_type_full": "город",
"region": "Москва",
"area_fias_id": null,
"area_kladr_id": null,
"area_with_type": null,
"area_type": null,
"area_type_full": null,
"area": null,
"city_fias_id": null,
"city_kladr_id": null,
"city_with_type": null,
"city_type": null,
"city_type_full": null,
"city": null,
"city_area": "Центральный",
"city_district_fias_id": null,
"city_district_kladr_id": null,
"city_district_with_type": "р-н Тверской",
"city_district_type": "р-н",
"city_district_type_full": "район",
"city_district": "Тверской",
"settlement_fias_id": null,
"settlement_kladr_id": null,
"settlement_with_type": null,
"settlement_type": null,
"settlement_type_full": null,
"settlement": null,
"street_fias_id": "8e39d017-db1c-413f-ae77-5f0d3b9e7ee9",
"street_kladr_id": "77000000000157500",
"street_with_type": "пл Красная",
"street_type": "пл",
"street_type_full": "площадь",
"street": "Красная",
"house_fias_id": "ef37b493-e94f-4f27-9e86-f4cd80f1057f",
"house_kladr_id": "7700000000015750001",
"house_type": "д",
"house_type_full": "дом",
"house": "3",
"block_type": null,
"block_type_full": null,
"block": null,
"flat_type": null,
"flat_type_full": null,
"flat": null,
"flat_area": "20.5",
"square_meter_price": null,
"flat_price": null,
"postal_box": null,
"fias_id": "ef37b493-e94f-4f27-9e86-f4cd80f1057f",
"fias_code": "77000000000000015750001",
"fias_level": "8",
"fias_actuality_state": "0",
"kladr_id": "7700000000015750001",
"capital_marker": "0",
"okato": "45286585000",
"oktmo": "45382000",
"tax_office": "7710",
"tax_office_legal": "7710",
"timezone": "UTC+3",
"geo_lat": "55.7545615",
"geo_lon": "37.6217053",
"beltway_hit": "IN_MKAD",
"beltway_distance": null,
"qc_geo": 0,
"qc_complete": 5,
"qc_house": 2,
"qc": 0,
"unparsed_parts": null,
"metro": [
{
"distance": 0.2,
"line": "Арбатско-Покровская",
"name": "Площадь Революции"
},
{
"distance": 0.5,
"line": "Сокольническая",
"name": "Охотный ряд"
},
{
"distance": 0.5,
"line": "Замоскворецкая",
"name": "Театральная"
}
]
}
]
{
"results" : [
{
"access_points" : [
{
"access_point_type" : "TYPE_SEGMENT",
"location" : {
"latitude" : 55.7549565,
"longitude" : 37.6221352
},
"location_on_segment" : {
"latitude" : 55.7550045,
"longitude" : 37.6222078
},
"place_id" : "ChIJGWJR9VlKtUYRRtUgHJhfMqM",
"segment_position" : 0.1111275851726532,
"unsuitable_travel_modes" : []
}
],
"address_components" : [
{
"long_name" : "3",
"short_name" : "3",
"types" : [ "street_number" ]
},
{
"long_name" : "Красная площадь",
"short_name" : "Красная пл.",
"types" : [ "route" ]
},
{
"long_name" : "Центральный административный округ",
"short_name" : "Центральный административный округ",
"types" : [ "political", "sublocality", "sublocality_level_1" ]
},
{
"long_name" : "Москва",
"short_name" : "Москва",
"types" : [ "locality", "political" ]
},
{
"long_name" : "Тверской",
"short_name" : "Тверской",
"types" : [ "administrative_area_level_3", "political" ]
},
{
"long_name" : "Москва",
"short_name" : "Москва",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "Россия",
"short_name" : "RU",
"types" : [ "country", "political" ]
},
{
"long_name" : "101000",
"short_name" : "101000",
"types" : [ "postal_code" ]
}
],
"formatted_address" : "Красная пл., 3, Москва, Россия, 101000",
"geometry" : {
"bounds" : {
"northeast" : {
"lat" : 55.7557591,
"lng" : 37.6235205
},
"southwest" : {
"lat" : 55.753652,
"lng" : 37.6194054
}
},
"location" : {
"lat" : 55.7546025,
"lng" : 37.62159949999999
},
"location_type" : "ROOFTOP",
"viewport" : {
"northeast" : {
"lat" : 55.7560545302915,
"lng" : 37.6235205
},
"southwest" : {
"lat" : 55.75335656970851,
"lng" : 37.6194054
}
}
},
"place_id" : "ChIJB2xxHFpKtUYRrhe--qdv8XI",
"types" : [ "premise" ]
}
],
"status" : "OK"
}
{
"hits": [
{
"osm_id": 100946944,
"osm_type": "W",
"extent": [
38.8821482,
49.9231032,
38.8878001,
49.9189055
],
"country": "Russia",
"osm_key": "highway",
"city": "Двуреченка",
"osm_value": "residential",
"postcode": "309740",
"name": "улица Красная Площадь",
"state": "Belgorod Oblast",
"point": {
"lng": 38.8842294,
"lat": 49.9216084
}
},
{
"osm_id": 169144882,
"osm_type": "W",
"extent": [
35.0419229,
52.2314997,
35.0438692,
52.2302804
],
"country": "Russia",
"osm_key": "highway",
"city": "Мелгора",
"osm_value": "residential",
"postcode": "307500",
"name": "улица Красная Площадь",
"state": "Kursk Oblast",
"point": {
"lng": 35.0419229,
"lat": 52.2302804
}
},
{
"osm_id": 374996893,
"osm_type": "W",
"extent": [
40.2595091,
43.6694092,
40.2602242,
43.668847
],
"country": "Russia",
"osm_key": "highway",
"city": "Estosadok",
"osm_value": "pedestrian",
"postcode": "354392",
"name": "Площадь Сбербанка",
"state": "релейшен для роутингового слоя в Навителе",
"point": {
"lng": 40.25988084828353,
"lat": 43.6691287
}
},
{
"osm_id": 2483856008,
"osm_type": "N",
"country": "Russia",
"osm_key": "highway",
"city": "Krasnodar",
"street": "Dzerzhinskogo Street",
"osm_value": "bus_stop",
"postcode": "350000",
"name": "Мегацентр \"Красная Площадь\"",
"state": "Krasnodar Krai",
"point": {
"lng": 38.9810969,
"lat": 45.1016024
}
},
{
"osm_id": 5493549746,
"osm_type": "N",
"country": "Russia",
"osm_key": "amenity",
"housenumber": "100",
"city": "Krasnodar",
"street": "Dzerzhinskogo Street",
"osm_value": "cinema",
"postcode": "350000",
"name": "МОНИТОР Красная Площадь",
"state": "Krasnodar Krai",
"point": {
"lng": 38.9838964,
"lat": 45.1009114
}
}
],
"took": 52
}
{
"type": "FeatureCollection",
"query": [
"россия",
"москва",
"красная",
"площадь",
"3"
],
"features": [
{
"id": "address.4533744209435118",
"type": "Feature",
"place_type": [
"address"
],
"relevance": 0.976827,
"properties": {
"accuracy": "point"
},
"text": "Красная Площадь",
"place_name": "Russia, Город Москва, Москва, округ Тверской, 109012, Красная Площадь 3",
"matching_place_name": "Россия, Город Москва, Москва, округ Тверской, 109012, Красная Площадь 3",
"center": [
37.621448,
55.754695
],
"geometry": {
"type": "Point",
"coordinates": [
37.621448,
55.754695
]
},
"address": "3",
"context": [
{
"id": "locality.19562595328979440",
"text": "округ Тверской"
},
{
"id": "postcode.14162034718905800",
"text": "109012"
},
{
"id": "place.9707587740083070",
"wikidata": "Q649",
"text": "Москва"
},
{
"id": "region.9331478628557580",
"short_code": "RU-MOW",
"wikidata": "Q649",
"text": "Город Москва"
},
{
"id": "country.9991113635720960",
"short_code": "ru",
"wikidata": "Q159",
"text": "Russia"
}
]
},
{
"id": "address.4882020449596354",
"type": "Feature",
"place_type": [
"address"
],
"relevance": 0.73208,
"properties": {
"accuracy": "street"
},
"text": "Красная Площадь",
"place_name": "Russia, Город Москва, Москва, округ Тверской, 109012, Красная Площадь",
"matching_place_name": "Россия, Город Москва, Москва, округ Тверской, 109012, Красная Площадь",
"center": [
37.6234718,
55.7528382
],
"geometry": {
"type": "Point",
"coordinates": [
37.6234718,
55.7528382
]
},
"context": [
{
"id": "locality.19562595328979440",
"text": "округ Тверской"
},
{
"id": "postcode.14162034718905800",
"text": "109012"
},
{
"id": "place.9707587740083070",
"wikidata": "Q649",
"text": "Москва"
},
{
"id": "region.9331478628557580",
"short_code": "RU-MOW",
"wikidata": "Q649",
"text": "Город Москва"
},
{
"id": "country.9991113635720960",
"short_code": "ru",
"wikidata": "Q159",
"text": "Russia"
}
]
},
{
"id": "poi.807453941016",
"type": "Feature",
"place_type": [
"poi"
],
"relevance": 0.72184,
"properties": {
"wikidata": "Q41116",
"landmark": true,
"address": "Красная пл.",
"category": "park",
"maki": "picnic-site"
},
"text": "붉은광장",
"place_name": "붉은광장, Красная пл., Москва, Город Москва 119019, Russia",
"matching_text": "Красная площадь",
"matching_place_name": "Красная площадь, Красная пл., Москва, Город Москва 119019, Россия",
"center": [
37.620515499999996,
55.753881
],
"geometry": {
"coordinates": [
37.620515499999996,
55.753881
],
"type": "Point"
},
"context": [
{
"id": "locality.19608498970834490",
"text": "округ Хамовники"
},
{
"id": "postcode.17946618786931510",
"text": "119019"
},
{
"id": "place.9707587740083070",
"wikidata": "Q649",
"text": "Москва"
},
{
"id": "region.9331478628557580",
"short_code": "RU-MOW",
"wikidata": "Q649",
"text": "Город Москва"
},
{
"id": "country.9991113635720960",
"short_code": "ru",
"wikidata": "Q159",
"text": "Russia"
}
]
},
{
"id": "place.9707587740083070",
"type": "Feature",
"place_type": [
"place"
],
"relevance": 0.635493,
"properties": {
"wikidata": "Q649"
},
"text": "Москва",
"place_name": "Москва, Город Москва, Russia",
"matching_place_name": "Москва, Город Москва, Россия",
"bbox": [
36.8030478778,
55.1424098289334,
37.9672888618296,
56.0200519998407
],
"center": [
37.61778,
55.75583
],
"geometry": {
"type": "Point",
"coordinates": [
37.61778,
55.75583
]
},
"context": [
{
"id": "region.9331478628557580",
"short_code": "RU-MOW",
"wikidata": "Q649",
"text": "Город Москва"
},
{
"id": "country.9991113635720960",
"short_code": "ru",
"wikidata": "Q159",
"text": "Russia"
}
]
},
{
"id": "address.8284003873600050",
"type": "Feature",
"place_type": [
"address"
],
"relevance": 0.62304,
"properties": {
"accuracy": "street"
},
"text": "Улица Красная Площадь",
"place_name": "Russia, Краснодарский край, Староминское, 353600, Улица Красная Площадь",
"matching_place_name": "Россия, Краснодарский край, Староминское, 353600, Улица Красная Площадь",
"center": [
39.0594275,
46.5455298
],
"geometry": {
"type": "Point",
"coordinates": [
39.0594275,
46.5455298
]
},
"context": [
{
"id": "postcode.11943160960722940",
"text": "353600"
},
{
"id": "place.8584524623769710",
"text": "Староминское"
},
{
"id": "district.11911259869190290",
"wikidata": "Q250512",
"text": "Староминский район"
},
{
"id": "region.12823707975429580",
"short_code": "RU-KDA",
"wikidata": "Q3680",
"text": "Краснодарский край"
},
{
"id": "country.9991113635720960",
"short_code": "ru",
"wikidata": "Q159",
"text": "Russia"
}
]
}
],
"attribution": "NOTICE: © 2020 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained. POI(s) provided by Foursquare."
}
https://nominatim.openstreetmap.org/details.php?osmtype=R&osmid=3330565&class=tourism
<?xml version="1.0" encoding="UTF-8"?>
<ymaps xmlns="http://maps.yandex.ru/ymaps/1.x" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/gml.xsd http://maps.yandex.ru/ymaps/1.x https://maps.yandex.ru/schemas/ymaps/1.x/ymaps.xsd http://maps.yandex.ru/geocoder/1.x http://maps.yandex.ru/schemas/geocoder/1.x/geocoder.xsd http://maps.yandex.ru/address/1.x http://maps.yandex.ru/schemas/search/1.x/address.xsd urn:oasis:names:tc:ciq:xsdschema:xAL:2.0 http://docs.oasis-open.org/election/external/xAL.xsd">
<GeoObjectCollection>
<metaDataProperty xmlns="http://www.opengis.net/gml">
<GeocoderResponseMetaData xmlns="http://maps.yandex.ru/geocoder/1.x">
<request>Москвы Красная площадь, д. 3</request>
<found>1</found>
<results>10</results>
</GeocoderResponseMetaData>
</metaDataProperty>
<featureMember xmlns="http://www.opengis.net/gml">
<GeoObject xmlns="http://maps.yandex.ru/ymaps/1.x" xmlns:gml="http://www.opengis.net/gml" gml:id="1">
<metaDataProperty xmlns="http://www.opengis.net/gml">
<GeocoderMetaData xmlns="http://maps.yandex.ru/geocoder/1.x">
<kind>house</kind>
<text>Россия, Москва, Красная площадь, 3</text>
<precision>exact</precision>
<Address xmlns="http://maps.yandex.ru/address/1.x">
<country_code>RU</country_code>
<postal_code>109012</postal_code>
<formatted>Россия, Москва, Красная площадь, 3</formatted>
<Component>
<kind>country</kind>
<name>Россия</name>
</Component>
<Component>
<kind>province</kind>
<name>Центральный федеральный округ</name>
</Component>
<Component>
<kind>province</kind>
<name>Москва</name>
</Component>
<Component>
<kind>locality</kind>
<name>Москва</name>
</Component>
<Component>
<kind>street</kind>
<name>Красная площадь</name>
</Component>
<Component>
<kind>house</kind>
<name>3</name>
</Component>
</Address>
<AddressDetails xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
<Country>
<AddressLine>Россия, Москва, Красная площадь, 3</AddressLine>
<CountryNameCode>RU</CountryNameCode>
<CountryName>Россия</CountryName>
<AdministrativeArea>
<AdministrativeAreaName>Москва</AdministrativeAreaName>
<Locality>
<LocalityName>Москва</LocalityName>
<Thoroughfare>
<ThoroughfareName>Красная площадь</ThoroughfareName>
<Premise>
<PremiseNumber>3</PremiseNumber>
<PostalCode>
<PostalCodeNumber>109012</PostalCodeNumber>
</PostalCode>
</Premise>
</Thoroughfare>
</Locality>
</AdministrativeArea>
</Country>
</AddressDetails>
</GeocoderMetaData>
</metaDataProperty>
<description xmlns="http://www.opengis.net/gml">Москва, Россия</description>
<name xmlns="http://www.opengis.net/gml">Красная площадь, 3</name>
<boundedBy xmlns="http://www.opengis.net/gml">
<Envelope>
<lowerCorner>37.617527 55.752323</lowerCorner>
<upperCorner>37.625738 55.756954</upperCorner>
</Envelope>
</boundedBy>
<Point xmlns="http://www.opengis.net/gml">
<pos>37.621633 55.754638</pos>
</Point>
</GeoObject>
</featureMember>
</GeoObjectCollection>
</ymaps>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment