Request “citySearchByName” - search the city by specified name (or its part).
Parameters:
Element name | Attribute | Description |
---|---|---|
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>
Parameters:
Element name | Attribute | Description |
---|---|---|
item | cityName | found city name |
item | cityId | found city ID in database |
item | lat | latitude of found city |
item | lng | longitude 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>