Cronblocks API Documentation – GetCityLike

HTTP Method: GET
URL: http://api.cronblocks.com/get_city_like.html
Input Parameters:
	api_key (required)
        country (required) * see below
        city (required)
	data_type (optional, defaults to JSON)

Output:
	array(
            assoc_array(city_id
                        city
                        region_name
                        )
        )

To assist in User Interface building, we offer the get_city_like method which will return information for cities which names start with a given string, within a given country.

* The value for country can be either the country’s exact name or ID, as returned from get_country_like

Example:

http://api.cronblocks.com/get_city_like.html?api_key=1234567890abcdef&country=brazil&city=rio+de

Returns:

{"api_name":"get_city_like","status":"SUCCESS","data":[{"city_id":"90244","city":"Rio De Janeiro","region_name":"Rio de Janeiro"}]}
This entry was posted in API Documentation and tagged , permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*