User Tools

Site Tools


autosuggestv2:citysearchbyname

Table of Contents

General information

Request “citySearchByName” - search the city by specified name (or its part).

Inquiry

Parameters:

Element nameAttributeDescription
type-request type
name-part of city name
<?xml version="1.0"?>
<mds>
  <auth>
    <login>LOGIN</login>
    <pass>PASSWORD</pass>
  </auth>
  <request>
    <type>citySearchByName</type>
    <conditions>
      <name>W</name>
    </conditions>
  </request>
</mds> 

Answer

Parameters:

Element nameAttributeDescription
itemcityNamefound city name
itemcityIdfound city ID in database
itemlatlatitude of found city
itemlnglongitude of found city
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<response>
  <item cityName="Warsaw (Masovian), Poland" cityId="4635" lat="52.229600" lng="21.008800"/>
  <item cityName="Wroclaw (Lower Silesian), Poland" cityId="336" lat="51.110400" lng="17.030900"/>
</response>
autosuggestv2/citysearchbyname.txt · Last modified: 2014/09/29 14:01 by zbyszekb