citiesList

citiesList

Description:

Returns a list of cities names for a given country ID. 

Version:

Available from version 1.0.1.

 

Access:

Available to all users.

 

Parameters:

 

NUMBER

NAME

O/R

USAGE

1

method

Required

Method used Case sensitive.

2

username

Required

The username to log. Case sensitive.

3

password

Required

The password to log. Case sensitive.

4

countryId

Required

The country ID (you can refer to « countriesList» method)

Example:


Request 



{

    "method": "citiesList", 

         "username": "API_USER", 

         "password": "API_PASSWORD",

         "countryId""2"

}

 

Response


{

    "res": [

        {

            "city""Maun",

            "countryName""Botswana"

        },

        {

            "city""Nata",

            "countryName""Botswana"

        },

        {

            "city""Makgadikgadi Pans National Park",

            "countryName""Botswana"

        },

        {

            "city""Okavango Delta",

            "countryName""Botswana"

        }

   ]

}