login : same as WEBSERVICE
password: same as WEBSERVICE
query Parameters:
Parametters | Descriptions |
---|---|
q | Country name and (optionally) the name of the region after the decimal point |
lang | language in which you need the description to be returned |
imageWidth | width you need the images to be returned |
imageHeight | height you need the images to be returned |
filter | graphics filter to be used when resizing images. The possible values are: crop - fit to fill a specified area without changing the proportions fit - adjust the image to max size vertically and horizontally without changing the proportions |
login | login |
password | password |
In response, we get the structure of XML:
<?xml version="1.0" encoding="UTF-8"?> <response status="OK"> <name>Hurghada</name> <sections> <section> <name>Section Name</name> <description>DESCRIPTION in format HTML</description> <images> <image url="URL image"/> <image url="URL image">OPTIONAL IMAGE DESCRIPTION</image> </images> </section> </sections> </response>
Possible status responses:
Status | Description |
---|---|
OK | found requested item |
MORE | found more than one match |
EMPTY | found requested item, but it is empty in the selected language |
NOTFOUND | There are no matching |
TOP | found only item on a higher level (eg the query “Italy, Rome,” and found only “Italy”) |
AUTH | invalid username / password |