GeoTService
Click here for a complete list of operations.
GetNearestCitiesExt
Возвращает список ближайших городов, со странами, регионами и гео-координатами.
- securityToken - токен авторизации (id + "_" + guid)
- lat - широта
- lon - долгота
- radius - радиус посика в метрах, до 50000 метров
- top - количество возвращаемых городов или населенных пунктов, до 50
- error - описание ошибки если результат работы метода не 0
- out cities - результат, список городов
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /geot/geot.asmx HTTP/1.1 Host: checksum.webmoney.ru Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/GetNearestCitiesExt" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetNearestCitiesExt xmlns="http://tempuri.org/"> <securityToken>string</securityToken> <lat>decimal</lat> <lon>decimal</lon> <radius>decimal</radius> <top>int</top> </GetNearestCitiesExt> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetNearestCitiesExtResponse xmlns="http://tempuri.org/"> <GetNearestCitiesExtResult>int</GetNearestCitiesExtResult> <error>string</error> <cities> <Location> <Id>int</Id> <Name>string</Name> <Fullname>string</Fullname> <EName>string</EName> <EFullName>string</EFullName> <Distance>decimal</Distance> <Lat>decimal</Lat> <Lon>decimal</Lon> <CountryId>int</CountryId> <CountryName>string</CountryName> <CountryEName>string</CountryEName> <RegionId>int</RegionId> <RegionName>string</RegionName> <RegionEName>string</RegionEName> <Iso2>string</Iso2> <Iso3>string</Iso3> </Location> <Location> <Id>int</Id> <Name>string</Name> <Fullname>string</Fullname> <EName>string</EName> <EFullName>string</EFullName> <Distance>decimal</Distance> <Lat>decimal</Lat> <Lon>decimal</Lon> <CountryId>int</CountryId> <CountryName>string</CountryName> <CountryEName>string</CountryEName> <RegionId>int</RegionId> <RegionName>string</RegionName> <RegionEName>string</RegionEName> <Iso2>string</Iso2> <Iso3>string</Iso3> </Location> </cities> </GetNearestCitiesExtResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /geot/geot.asmx HTTP/1.1 Host: checksum.webmoney.ru Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetNearestCitiesExt xmlns="http://tempuri.org/"> <securityToken>string</securityToken> <lat>decimal</lat> <lon>decimal</lon> <radius>decimal</radius> <top>int</top> </GetNearestCitiesExt> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetNearestCitiesExtResponse xmlns="http://tempuri.org/"> <GetNearestCitiesExtResult>int</GetNearestCitiesExtResult> <error>string</error> <cities> <Location> <Id>int</Id> <Name>string</Name> <Fullname>string</Fullname> <EName>string</EName> <EFullName>string</EFullName> <Distance>decimal</Distance> <Lat>decimal</Lat> <Lon>decimal</Lon> <CountryId>int</CountryId> <CountryName>string</CountryName> <CountryEName>string</CountryEName> <RegionId>int</RegionId> <RegionName>string</RegionName> <RegionEName>string</RegionEName> <Iso2>string</Iso2> <Iso3>string</Iso3> </Location> <Location> <Id>int</Id> <Name>string</Name> <Fullname>string</Fullname> <EName>string</EName> <EFullName>string</EFullName> <Distance>decimal</Distance> <Lat>decimal</Lat> <Lon>decimal</Lon> <CountryId>int</CountryId> <CountryName>string</CountryName> <CountryEName>string</CountryEName> <RegionId>int</RegionId> <RegionName>string</RegionName> <RegionEName>string</RegionEName> <Iso2>string</Iso2> <Iso3>string</Iso3> </Location> </cities> </GetNearestCitiesExtResponse> </soap12:Body> </soap12:Envelope>