Показать сообщение отдельно
  #3  
Старый 07.07.2015, 14:03
Аватар для NumLock
NumLock NumLock вне форума
Let Me Show You
 
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
По умолчанию

на WinHTTP написал примерчик для Простой поиск по названию

возвратил результат:

Код HTML:
<?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://maps.yandex.ru/business/1.x http://maps.yandex.ru/schemas/business/1.x/business.xsd http://maps.yandex.ru/geocoder/1.x http://maps.yandex.ru/schemas/geocoder/1.x/geocoder.xsd http://maps.yandex.ru/psearch/1.x http://maps.yandex.ru/schemas/psearch/1.x/psearch.xsd http://maps.yandex.ru/search/1.x http://maps.yandex.ru/schemas/search/1.x/search.xsd http://maps.yandex.ru/web/1.x http://maps.yandex.ru/schemas/web/1.x/web.xsd http://maps.yandex.ru/search/internal/1.x http://maps.yandex.ru/schemas/search/internal/1.x/internal.xsd"> <GeoObjectCollection> <metaDataProperty xmlns="http://www.opengis.net/gml"> <GeocoderResponseMetaData xmlns="http://maps.yandex.ru/geocoder/1.x"> <request>город Архангельск, Троицкий проспект, дом 51</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"> <metaDataProperty xmlns="http://www.opengis.net/gml"> <GeocoderMetaData xmlns="http://maps.yandex.ru/geocoder/1.x"> <kind>house</kind> <text>Россия, Архангельск, Троицкий проспект, 51</text> <precision>exact</precision> <AddressDetails xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"> <Country> <AddressLine>Архангельск, Троицкий проспект, 51</AddressLine> <CountryNameCode>RU</CountryNameCode> <CountryName>Россия</CountryName> <AdministrativeArea> <AdministrativeAreaName>Архангельская область</AdministrativeAreaName> <SubAdministrativeArea> <SubAdministrativeAreaName>городской округ Архангельск</SubAdministrativeAreaName> <Locality> <LocalityName>Архангельск</LocalityName> <Thoroughfare> <ThoroughfareName>Троицкий проспект</ThoroughfareName> <Premise> <PremiseNumber>51</PremiseNumber> </Premise> </Thoroughfare> </Locality> </SubAdministrativeArea> </AdministrativeArea> </Country> </AddressDetails> </GeocoderMetaData> </metaDataProperty> <description xmlns="http://www.opengis.net/gml">Архангельск, Россия</description> <name xmlns="http://www.opengis.net/gml">Троицкий проспект, 51</name> <boundedBy xmlns="http://www.opengis.net/gml"> <Envelope> <lowerCorner>40.506402 64.538565</lowerCorner> <upperCorner>40.522859 64.545648</upperCorner> </Envelope> </boundedBy> <Point xmlns="http://www.opengis.net/gml"> <pos>40.51463 64.542107</pos> </Point> </GeoObject> </featureMember> </GeoObjectCollection> </ymaps>

в Google Earth вбил строку-координаты "64.542107 40.51463" (из результата поменял местами значения), попал в точку. задал свой домашний адрес - снова в точку.

Пример
__________________
Пишу программы за еду.
__________________
Ответить с цитированием