User Tools

Site Tools


autosuggest: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
cityName-found city name
cityId-found city ID in database
lat-latitude of found city
lng-longitude of found city
<response>
  <item>
    <cityName>Wrocław (Dolnośląskie), Polska</cityName>
    <cityId>3</cityId>
    <lat>51.110362</lat>
    <lng>17.031135</lng>
  </item>
</response>
autosuggest/citysearchbyname.txt · Last modified: 2012/08/27 10:49 by krzysiekd