Brezplačni telefon (za klice iz stacionarne mreže)
Slovenija: 0800 80 389
Delovni čas: Pon - Pet 08:00h - 22:00h, Sob 08:00h - 14:00h
E-mail: info@adriatic.hr
Version 1.2
About
Adriatic.hr Web Service is a web API [?], based on REST [?], which allows communication between yours and Adriatic.hr web site. Thanks to it, visitors of your web site can search, preview and place order for any service in our offering, without leaving your web site.
It can be used by calling the access URL -
- method - web service (method) name (required)
- aid - application ID; this is your unique ID information which will be generated for you after opting for our web services (required)
- lang - two-letter language code (according to ISO 639-1 standard) in lowercase, used to localize results (if needed); defaults to en - english. (not required)
-
sig - request signature.
Composed of name of the method that is called, application ID and (encrypted) unique private key.
Used ONLY in combination with SSL[?] (Secure Sockets Layer) protocol to secure the communication. (required from 01.01.2011)
- sig generation: md5("method_called;aid;md5(private_key)")
- example: md5("Private_getHouse;af151;md5(private_key)")
-
usage:
https://www.adriatic.hr/services/rest/?
method=Private_getHouse&id=1005&aid=
af151&lang=en&sig=6f0dcac4960e0eab40c4bdc1d42b6c03
- Private accommodation - namespace Private
- Geography locations - namespace Geo
- Ordering process - namespace Order
- System/helper/common - namespace System
Usage
The following example retrieves data of private accommodation house with ID 1005. Click on preview link to see the service result.
https://www.adriatic.hr/services/rest/
?method=Private_getHouse
&id=1005
&aid=af151
&lang=sl
&sig=6f0dcac4960e0eab40c4bdc1d42b6c03
Each parameter is specified inside URL as name=value pair. The method parameter specifies service method to be invoked. All subsequent parameters are parameters passed to specified method. Some method parameters are optional while others are required to be set - faling to specifiy the required parameter will result in error.
Methods
Here is the list of supported service methods. Request parameters written in bold are required.
Many response elements contain special boolean attribute na. It stands for "not available" and means that element value is unknown (null). This attribute exist only for elements which value can be unknown.
Possible response statuses are success and failure.
Private_find
Search private accommodation. Method is pagination aware (results are split across multiple pages).
Request parameters
| i_from | date | Begin of interval. Allowed formats are YYYY-MM-DD and unix timestamp. |
|---|---|---|
| i_to | date | End of interval. Allowed formats are YYYY-MM-DD and unix timestamp. |
| i_dev | bool | Allow slight shifting of given date interval to find more accommodation units. Default value is TRUE. |
| i_sub | bool | Look for subinterval of given interval, instead of just given interval. Subinterval is limited by len_min and len_max parameters. If interval is not set, main season is used (june, july and august). This parameter is handy if you want to find units available, e.g., in main season (when most of them are not available). Default value is FALSE. |
| len_min | int | Minimum number of nights. Used only if i_sub is true. Default value is 1. |
| len_max | int | Maximum number of nights. Used only if i_sub is true. Default value is 6. |
| t | type | Comma delimited list of accommodation unit types. Example: "apartment,room". Supported types are:
|
| id | int | Comma delimited list of house IDs. Example: "1005,1006". Use case example - if you want to get a price range of desired house(s). |
| kit_room | bool | Use of the kitchen for unit type room. |
| p | int | Number of persons. |
| p_dist | bool | Allow to split persons in more than one accommodation unit inside house. Default value is FALSE. |
| cat | type | House category. Supported types are:
|
| pos_fl | int | Floor. Value of zero represent ground floor, negative values represent basement floors. Supports multiple values separated by '|' (OR operator). |
| prc_min | float | Minimal price in EUR (per day). Default value is 0. |
| prc_max | float | Maximal price in EUR (per day). |
| prc_low | bool | Low-price accommodation. |
| prc_wod | bool | Retrieve prices without discounts (applies only to an accommodation service price list). Use this if you want to show original prices (without discount, if any exist) and print (advert) discount information elsewhere, instead of just including discounts into prices. Default value is FALSE. |
| dc | bool | Discount accommodation (any type of discount). |
| dc_t | type | Discount type. Supported types are:
|
| dc_g | bool | Special discount accommodation (specific type of discount). This element is deprecated. See dc_t. |
| dc_mw | bool | Most wanted accommodation. This element is deprecated, see dc_t. This element is deprecated. See dc_t. |
| q | string | Keywords for textual search (geography location names only). |
| l | string | Geography location ID. |
| pl_isol | bool | Place in isolation. |
| ri_t | type | Riviera type. Supported types are:
|
| be_t | type | Beach type. Supported types are:
|
| be_d | int | Maximal house to beach distance. |
| pool | bool | House with pool. |
| ac | bool | Accommodation unit with air conditioner. |
| stv | bool | Accommodation unit with satellite TV. |
| food | bool | House with food service. |
| pet | bool | House with pet approval. |
| boat | bool | House with boat rent service. |
| moor | bool | House with boat moor. |
| outer_view_sea | bool | House with sea view. |
| outer_grill | bool | House with outer grill. |
| inet | bool | House with internet. |
| dis | bool | Unit access suitable for disabled persons. |
| bedrooms | int | Number of bedrooms. It can be used in combination with p_dist param. |
| sort | type | Sort criterion. Supported types are:
|
| sort_dir | type | Sort direction. Supported types are:
|
| page | int | Page number. Default value is 1. |
| limit | int | Number of results per page (max. 25). Default value is 10. |
Response
| <list> - List data | ||
|---|---|---|
| items | array | Items on current page. Array of <item> elements. See <item> (List item data) for details. |
| pager | set | Set of pager elements. See <pager> (List pager data) for details. |
| <item> - List item data | ||
|---|---|---|
| house | set | Found house. See <house> (House data) for details. Element has the following attributes:
|
| units | array | Accommodation units which belongs to house from the same <item> element. Only units that match search criteria are enlisted here. Array of <unit> elements. See <unit> (Accommodation unit data) for details. |
| <pager> - List pager data | ||
|---|---|---|
| totalItems | int | Total items that match search criteria. |
| totalPages | int | Total pages. |
| currentPage | int | Current page. |
| pageLimit | int | Maximum number of items per page. |
| <house> - House data | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| name | string | House name. |
| capacity | int | Number of beds. |
| food | bool | Food service available? |
| lastIntervalCheck | datetime | Time when availability intervals are last updated. Date-time string in YYYY-MM-DD hh:mm:ss format (ISO 8601). Time zone is Croatian - GMT+1 (+DST). |
| directBooking | bool | Availability status is accurate - order is possible without agency confirmation? |
| units | array | References to all accommodation units which belongs to this house (not necessary match search criteria). Array of <unit> elements. See <unit> (Accommodation unit reference data) for details. |
| geo | set | Geography location. See <geo> (Geography location data) for details. |
| distance | set | Distances. See <distance> (Distance data) for details. |
| categories | array | Categories which house belongs to. Array of <category> elements. See <category> (House category data) for details. |
| discounts | array | Discounts and additional payments. Some types of discounts are related to accommodation unit (see Private_getUnit response), whilst others are related to the whole house. Discounts related to the whole house are applicable on every associated accommodation unit. Array of <discount> elements. See <discount> (Discount/additional payment data) for details. |
| relate | set | Related houses. See <relate> (Related objects) for details. |
| rating | set | Ratings. See <rating> (Ratings (1-5)) for details. |
| redirect | array | Redirect links [URL]. Array of <redirect> elements. See <redirect> (Redirect links [URL]) for details. |
| image | array | Image of house. Array of <variant> elements. See <variant> (Image variant data) for details. |
| <unit> - Accommodation unit data | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| name | string | Name. |
| lastIntervalCheck | datetime | Time when availability intervals are last updated. Date-time string in YYYY-MM-DD hh:mm:ss format (ISO 8601). Time zone is Croatian - GMT+1 (+DST). |
| type | type | Type. Supported types are:
|
| label | string | Accommodation unit character label. Used to distinguish multiple accommodation units with a same type, within the same house. |
| capacity | set | Capacity data. See <capacity> (Capacity data) for details. |
| class | set | Classification data. See <class> (Accommodation unit classification data) for details. |
| priceRange | array | Accommodation unit price range. Contains two amounts (range), single amount (exact price is known) or no amounts (price is unknown). Value depends on search parameters used (date interval and number of persons). Array of <amount> elements. See <amount> (Price amount (per day).) for details. |
| discounts | array | Discounts and additional payments. Some types of discounts are related to accommodation unit, whilst others are related to the whole house. Discounts related to the whole house are applicable on every associated accommodation unit. Array of <discount> elements. See <discount> (Discount/additional payment data) for details. |
| lowPrice | bool | Accommodation unit has a low price? |
| redirect | array | Redirect links [URL]. Array of <redirect> elements. See <redirect> (Redirect links [URL]) for details. |
| image | array | Image of house. Array of <variant> elements. See <variant> (Image variant data) for details. |
| <unit> - Accommodation unit reference data | ||
|---|---|---|
| self | string | Accommodation unit name. Element has the following attributes:
|
| <geo> - Geography location data | ||
|---|---|---|
| region | string | Region name. Element has the following attributes:
|
| riviera | string | Riviera name. Element has the following attributes:
|
| place | string | Place name. Element has the following attributes:
|
| beach | null | Beach placeholder - beaches does not have names, only IDs. Element has the following attributes:
|
| <distance> - Distance data | ||
|---|---|---|
| beach | int | Distance from beach (meters). |
| <category> - House category data | ||
|---|---|---|
| self | type | House category. Supported types are:
|
| <discount> - Discount/additional payment data | ||
|---|---|---|
| type | type | Discount type. Supported types are:
|
| name | string | Name. |
| value | set | Percent, money or freeDays value. See <value> (Discount/additional payment value) for details. |
| <relate> - Related objects | ||
|---|---|---|
| exist | bool | Is object related with any other object? |
| houses | array | Other houses that are related to this house. Array of <house> elements. See <house> (Related House element) for details. |
| <variant> - Image variant data Image variants are versions of the same image, differentiated by size, listed if exist. | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| url | string | Image variant URL. |
| <rating> - Ratings (1-5) | ||
|---|---|---|
| place | int | Average place rating. Element has the following attributes:
|
| beach | int | Average beach rating. Element has the following attributes:
|
| accomodation | int | Average accomodation rating. Element has the following attributes:
|
| host | int | Average host rating. Element has the following attributes:
|
| total | int | Total average rating. Element has the following attributes:
|
| <redirect> - Redirect links [URL] URL links for redirection. | ||
|---|---|---|
| house | string | House URL. |
| unit | string | Unit URL. |
| order | string | Ordering URL. |
| <capacity> - Capacity data | ||
|---|---|---|
| total | int | Total number of beds. |
| basic | int | Number of basic (main) beds. |
| additional | int | Number of additional beds. |
| <class> - Accommodation unit classification data | ||
|---|---|---|
| official | int | Official classification mark (by Croatian authority). |
| adriatic | float | Adriatic.hr classification mark. |
| <amount> - Price amount (per day). | ||
|---|---|---|
| self | float | Price amount. Element has the following attributes:
|
| <value> - Discount/additional payment value Percent, money or freeDays amount. Negative values are discounts, positive values are additional payments. | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| percent | float | Percent value. |
| amount | float | Money amount value. Element has the following attributes:
|
| freeDays | int | Number of free days. Element has the following attributes:
|
| <house> - Related House element | ||
|---|---|---|
| name | string | House name |
| capacity | int | Number of beds |
| sameBuilding | bool | This house belong to the same building. |
Example usage
Find apartments available in date interval 2012-08-09 to 2012-08-15.
https://www.adriatic.hr/services/rest/?method=Private_find
&i_from=2012-08-09
&i_to=2012-08-15
&t=apartment
&aid=af151
&lang=sl
&sig=e449a43f7f2c6ac9e4af475d0607c5c1
Private_findReviews
Search guest comments for objects. Method is pagination aware (results are split across multiple pages).
Request parameters
| id | int | Object ID. This parameter is required. |
|---|---|---|
| page | int | Page number. Default value is 1. |
| limit | int | Number of results per page (max. 25). Default value is 10. |
Response
| <list> - List data | ||
|---|---|---|
| items | array | Items on current page. Array of <item> elements. See <item> (List item data) for details. |
| pager | set | Set of pager elements. See <pager> (List pager data) for details. |
| <item> - List item data | ||
|---|---|---|
| unit | string | Accommodation unit name. Element has the following attributes:
|
| id | int | Review id. |
| author | string | Review author name. |
| created | datetime | Review creation time. Date-time string in YYYY-MM-DD hh:mm:ss format (ISO 8601). Time zone is Croatian - GMT+1 (+DST). |
| customer | bool | Adriatic.hr customer. |
| review | string | Review text. Element has the following attributes:
|
| rating | set | Ratings. See <rating> (Ratings (1-5)) for details. |
| <pager> - List pager data | ||
|---|---|---|
| totalItems | int | Total items that match search criteria. |
| totalPages | int | Total pages. |
| currentPage | int | Current page. |
| pageLimit | int | Maximum number of items per page. |
| <rating> - Ratings (1-5) | ||
|---|---|---|
| place | int | Place rating. |
| beach | int | Beach rating. |
| accomodation | int | Accomodation rating. |
| host | int | Host rating. |
Example usage
Find reviews for object with ID 1005.
https://www.adriatic.hr/services/rest/?method=Private_findReviews
&id=1005
&aid=af151
&lang=sl
&sig=d5f34cd9084c08130929e02b57b0630f
Private_getHouse
Retrieve house data.
Request parameters
| id | int | House ID. This parameter is required. |
|---|
Response
| <house> - House data | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| name | string | House name. |
| capacity | int | Number of beds. |
| publishDate | date | House publish date. Date string in YYYY-MM-DD format (ISO 8601). Time zone is Croatian - GMT+1 (+DST). |
| postalCode | string | Postal code. |
| lastIntervalCheck | datetime | Time when availability intervals are last updated. Date-time string in YYYY-MM-DD hh:mm:ss format (ISO 8601). Time zone is Croatian - GMT+1 (+DST). |
| directBooking | bool | Availability status is accurate - order is possible without agency confirmation? |
| units | array | References to all accommodation units which belongs to this house (not necessary match search criteria). Array of <unit> elements. See <unit> (Accommodation unit reference data) for details. |
| geo | set | Geography location. See <geo> (Geography location data) for details. |
| exterior | set | House exterior. See <exterior> (Exterior data) for details. |
| service | set | Availability and details of services. See <service> (Service data) for details. |
| distance | set | Distances. See <distance> (Distance data) for details. |
| location | set | Location data. See <location> (Location data) for details. |
| communication | set | Possibilities of communication inside house. See <communication> (Communication data) for details. |
| categories | array | Categories which house belongs to. Array of <category> elements. See <category> (House category data) for details. |
| discounts | array | Discounts and additional payments. Some types of discounts are related to accommodation unit (see Private_getUnit response), whilst others are related to the whole house. Discounts related to the whole house are applicable on every associated accommodation unit. Array of <discount> elements. See <discount> (Discount/additional payment data) for details. |
| lowPrice | bool | House contains at least one unit that has a low price? |
| relate | set | Related houses. See <relate> (Related objects) for details. |
| notes | array | Additional house characteristics. Array of <note> elements. See <note> (Additional house characteristic) for details. |
| rating | set | Ratings. See <rating> (Ratings (1-5)) for details. |
| redirect | array | Redirect links [URL]. Array of <redirect> elements. See <redirect> (Redirect links [URL]) for details. |
| images | array | House images. Array of <image> elements. See <image> (House image) for details. |
| description | set | Object description. See <description> (Object description) for details. |
| <unit> - Accommodation unit reference data | ||
|---|---|---|
| self | string | Accommodation unit name. Element has the following attributes:
|
| <geo> - Geography location data | ||
|---|---|---|
| region | string | Region name. Element has the following attributes:
|
| riviera | string | Riviera name. Element has the following attributes:
|
| place | string | Place name. Element has the following attributes:
|
| beach | null | Beach placeholder - beaches does not have names, only IDs. Element has the following attributes:
|
| <exterior> - Exterior data | ||
|---|---|---|
| disabledPersons | bool | Is suitable for disabled persons? |
| courtyard | set | Existence and description of courtyard. See <courtyard> (Courtyard data) for details. |
| pool | set | Availability and terms of pool usage. See <pool> (Pool data) for details. |
| garage | set | Availability and terms of garage usage. See <garage> (Garage data) for details. |
| parking | set | Availability and terms of parking usage. See <parking> (Parking data) for details. |
| grill | set | Availability and location of grill. See <grill> (Grill data) for details. |
| shower | bool | Has shower in the courtyard? |
| <service> - Service data | ||
|---|---|---|
| checkin | set | Checkin service data. See <checkin> (Checkin service data) for details. |
| ecoTax | set | Ecological taxation service data. See <ecoTax> (Ecological taxation service data) for details. |
| insurance | set | Mandatory insurance service data. See <insurance> (Mandatory insurance service data) for details. |
| phone | set | Phone usage data. See <phone> (Phone service data) for details. |
| fax | set | Fax usage data. See <fax> (Fax service data) for details. |
| internet | set | Internet access usage data. See <internet> (Internet access service data) for details. |
| food | set | Food service data. See <food> (Food service data) for details. |
| laundry | set | Laundry service data. See <laundry> (Laundry service data) for details. |
| boat | set | Boat usage data. See <boat> (Boat service data) for details. |
| moor | set | Moor usage data. See <moor> (Moor service data) for details. |
| pet | set | Unit with pet approval. See <pet> (Pet service data) for details. |
| <distance> - Distance data | ||
|---|---|---|
| sea | int | Distance from sea (meters). |
| beach | int | Distance from beach (meters). |
| shop | int | Distance from shop (meters). Element has the following attributes:
|
| restaurant | int | Distance from restaurant (meters). Element has the following attributes:
|
| ambulance | int | Distance from ambulance (meters). Element has the following attributes:
|
| postOffice | int | Distance from post office (meters). Element has the following attributes:
|
| disco | int | Distance from disco (meters). Element has the following attributes:
|
| hotelPool | int | Distance from hotel pool (meters). Element has the following attributes:
|
| sportsGround | int | Distance from sports ground (meters). Element has the following attributes:
|
| diving | int | Distance from diving center (meters). Element has the following attributes:
|
| pharmacy | int | Distance from pharmacy (meters). Element has the following attributes:
|
| atm | int | Distance from atm (meters). Element has the following attributes:
|
| internetCaffe | int | Distance from internet caffe (meters). Element has the following attributes:
|
| exchangeOffice | int | Distance from exchange office (meters). Element has the following attributes:
|
| touristInfo | int | Distance from tourist info (meters). Element has the following attributes:
|
| infirmary | int | Distance from infirmary (meters). Element has the following attributes:
|
| airport | int | Distance from airport (meters). Element has the following attributes:
|
| autocamp | int | Distance from autocamp (meters). Element has the following attributes:
|
| golfCourse | int | Distance from golf course (meters). Element has the following attributes:
|
| tennisCourt | int | Distance from tennis court (meters). Element has the following attributes:
|
| playground | int | Distance from playground (meters). Element has the following attributes:
|
| centre | int | Distance from place center (meters). |
| <location> - Location data | ||
|---|---|---|
| nearMainRoad | bool | Is near main road? |
| beachAcrossRoad | bool | Is there a road between house and beach? |
| nearBeach | bool | Is near beach? |
| stairsToBeach | int | Number of stairs between house and beach. |
| reachableByCar | bool | Is object reachable by car. |
| parkDistance | int | Distance from nearest parking place (meters). |
| securedParking | bool | Is parking place secured? |
| stairsToParking | int | Number of stairs between house and nearest parking place. |
| quiet | bool | Surrounding is quiet? |
| isolation | bool | House is isolated? |
| green | bool | Surrounding is green? |
| <communication> - Communication data | ||
|---|---|---|
| hostPresent | bool | Is host presence possible? |
| otherGuests | bool | Is other guests presence possible (in accommodation units outside of our offering)? |
| hostLanguages | array | Foreign languages which the host is familiar with. Array of <language> elements. See <language> (Host foreign language data) for details. |
| <category> - House category data | ||
|---|---|---|
| self | type | House category. Supported types are:
|
| <discount> - Discount/additional payment data | ||
|---|---|---|
| type | type | Discount type. Supported types are:
|
| name | string | Name. |
| value | set | Percent, money or freeDays value. See <value> (Discount/additional payment value) for details. |
| <relate> - Related objects | ||
|---|---|---|
| exist | bool | Is object related with any other object? |
| houses | array | Other houses that are related to this house. Array of <house> elements. See <house> (Related House element) for details. |
| <note> - Additional house characteristic | ||
|---|---|---|
| self | string | Description. |
| <rating> - Ratings (1-5) | ||
|---|---|---|
| place | int | Average place rating. Element has the following attributes:
|
| beach | int | Average beach rating. Element has the following attributes:
|
| accomodation | int | Average accomodation rating. Element has the following attributes:
|
| host | int | Average host rating. Element has the following attributes:
|
| total | int | Total average rating. Element has the following attributes:
|
| <redirect> - Redirect links [URL] URL links for redirection. | ||
|---|---|---|
| house | string | House URL. |
| unit | string | Unit URL. |
| order | string | Ordering URL. |
| <image> - House image | ||
|---|---|---|
| self | array | Image variants. Array of <variant> elements. See <variant> (Image variant data) for details. Element has the following attributes:
|
| <courtyard> - Courtyard data | ||
|---|---|---|
| exist | bool | Courtyard exists? |
| size | bool | Courtyard size (in square meters). |
| playground | bool | Has children playground? |
| seats | bool | Has seating place? |
| <pool> - Pool data | ||
|---|---|---|
| exist | bool | Pool exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <garage> - Garage data | ||
|---|---|---|
| exist | bool | Garage exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| places | int | Number of places. |
| <parking> - Parking data | ||
|---|---|---|
| exist | bool | Parking exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| places | int | Number of places. |
| <grill> - Grill data | ||
|---|---|---|
| exist | bool | Grill exists? |
| location | type | Grill location. Supported types are:
|
| <checkin> - Checkin service data | ||
|---|---|---|
| exist | bool | Checkin service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <ecoTax> - Ecological taxation service data | ||
|---|---|---|
| exist | bool | Ecological taxation service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| freeAgeLt12 | bool | Is ecotax free for children with age under 12 years? |
| <insurance> - Mandatory insurance service data | ||
|---|---|---|
| exist | bool | Mandatory insurance service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <phone> - Phone service data | ||
|---|---|---|
| exist | bool | Phone service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| onRequest | bool | Service available on request? |
| <fax> - Fax service data | ||
|---|---|---|
| exist | bool | Fax service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| onRequest | bool | Service available on request? |
| <internet> - Internet access service data | ||
|---|---|---|
| exist | bool | Internet access service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| onRequest | bool | Service available on request? |
| type | type | Internet access type. Supported types are:
|
| rate | set | Internet access rate. See <rate> (Internet access rate data) for details. This element is deprecated. See <type>. |
| hostComputer | bool | Possible access via house host computer? |
| guestComputer | bool | Possible access via guest computer? |
| guestConnType | type | Guest computer connection type. Supported types are:
|
| locationShared | bool | Is internet access available in the joint room? |
| <food> - Food service data | ||
|---|---|---|
| breakfast | set | Breakfast service data. See <breakfast> (Breakfast service data) for details. |
| halfboard | set | Half-board service data. See <halfboard> (Half-board service data) for details. |
| fullboard | set | Full-board service data. See <fullboard> ( Full-board service data) for details. |
| forced | type | Required food service type. Empty value means none. Supported types are:
|
| freeAgeLt4 | bool | Is food service free for children with age under 4 years? |
| halfAge4To12 | bool | Is food service on 50% discount for children with age of 4 to 12 years? |
| <laundry> - Laundry service data | ||
|---|---|---|
| exist | bool | Laundry service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| onRequest | bool | Service available on request? |
| locationHost | bool | Is washing machine at the owner's apartment? |
| locationShared | bool | Is washing machine in the joint room? |
| <boat> - Boat service data | ||
|---|---|---|
| exist | bool | Boat service exists? |
| onRequest | bool | Service available on request? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| fuelIncluded | bool | Is fuel included? |
| <moor> - Moor service data | ||
|---|---|---|
| exist | bool | Moor service exists? |
| onRequest | bool | Service available on request? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <pet> - Pet service data | ||
|---|---|---|
| exist | bool | Pet service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| onRequest | bool | Service available on request? |
| <variant> - Image variant data Image variants are versions of the same image, differentiated by size, listed if exist. | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| url | string | Image variant URL. |
| <price> - Pricing data | ||
|---|---|---|
| type | type | Price type. Supported types are:
|
| amount | float | Price amount. Element has the following attributes:
|
| unit | type | Price unit type. Supported types are:
|
| <value> - Discount/additional payment value Percent, money or freeDays amount. Negative values are discounts, positive values are additional payments. | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| percent | float | Percent value. |
| amount | float | Money amount value. Element has the following attributes:
|
| freeDays | int | Number of free days. Element has the following attributes:
|
| <rate> - Internet access rate data | ||
|---|---|---|
| dl | int | Download rate. Element has the following attributes:
|
| ul | int | Upload rate. Element has the following attributes:
|
| <language> - Host foreign language data | ||
|---|---|---|
| code | string | Two-letter language code (according to ISO 639-1 standard) in lowercase. |
| knowledge | int | Knowledge mark. Range is from 1 (poor) to 5 (excellent). |
| <breakfast> - Breakfast service data | ||
|---|---|---|
| exist | bool | Breakfast service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <halfboard> - Half-board service data | ||
|---|---|---|
| exist | bool | Half-board service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <fullboard> - Full-board service data | ||
|---|---|---|
| exist | bool | Full-board service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <house> - Related House element | ||
|---|---|---|
| name | string | House name |
| capacity | int | Number of beds |
| sameBuilding | bool | This house belong to the same building. |
| <description> - Object description | ||
|---|---|---|
| summary | string | Object description summary |
| body | string | Object description body |
Example usage
Retrieve data of private accommodation house with ID 1005.
https://www.adriatic.hr/services/rest/?method=Private_getHouse
&id=1005
&aid=af151
&lang=sl
&sig=6f0dcac4960e0eab40c4bdc1d42b6c03
Private_getUnit
Retrieve accommodation unit data.
Request parameters
| id | int | Accommodation unit ID. This parameter is required. |
|---|---|---|
| prc_wod | bool | Prices without discounts (applies only to an accommodation service price list). Use this if you want to show original price list (without discount, if any exist) and print (advert) discount information elsewhere, instead of just including discounts into price list. Default value is FALSE. |
Response
| <unit> - Accommodation unit data | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| name | string | Name (eg. A-1000-c, K-1000, etc.). Name is consisted of type code (K, A, AS or K), house name and character label (not used for house type). This description is for your information only (you don't have to deal with it). |
| lastIntervalCheck | datetime | Time when availability intervals are last updated. Date-time string in YYYY-MM-DD hh:mm:ss format (ISO 8601). Time zone is Croatian - GMT+1 (+DST). |
| type | type | Type. Supported types are:
|
| label | string | Character label. Used to distinguish multiple accommodation units with a same type, within the same house. |
| house | string | Name of the house which accommodation unit belongs to. Element has the following attributes:
|
| capacity | set | Capacity data. See <capacity> (Capacity data) for details. |
| class | set | Classification data. See <class> (Accommodation unit classification data) for details. |
| position | set | Position inside house data. See <position> (Position data) for details. |
| entrance | set | Entrance data. See <entrance> (Entrance data) for details. |
| disabledPersons | bool | Is suitable for disabled persons? |
| parts | array | Available parts. Part is an inner or outer area of accommodation unit (eg. room, terrace, balcony, etc.). Array of <part> elements. See <part> (Part data) for details. |
| service | set | Availability and details of services. See <service> (Service data) for details. |
| priceList | set | Price list data. Accommodation unit daily price depends of date and number of persons. Thus, prices are groupped by date intervals and number of persons. See <priceList> (Price list data) for details. |
| redirect | array | Redirect links [URL]. Array of <redirect> elements. See <redirect> (Redirect links [URL]) for details. |
| rating | set | Ratings. See <rating> (Ratings (1-5)) for details. |
| images | array | Images. Array of <image> elements. See <image> (Image) for details. |
| <capacity> - Capacity data | ||
|---|---|---|
| total | int | Total number of beds. |
| basic | int | Number of basic (main) beds. |
| additional | int | Number of additional beds. |
| <class> - Accommodation unit classification data | ||
|---|---|---|
| official | int | Official classification mark (by Croatian authority). |
| adriatic | float | Adriatic.hr classification mark. |
| <position> - Position data | ||
|---|---|---|
| floor | int | Floor. Value of zero represent ground floor, negative values represent basement floors. |
| floorSpan | int | Number of floors through which this accommodation unit spans. |
| halfBasement | bool | Is this a half basement floor? This value makes sense only if floor has value of -1. This element is deprecated. See <raisedFloor>. |
| raisedFloor | bool | Is the unit floor raised? Special examples: if floor is 0 (ground floor) and the floor is raised, it's upper ground floor; if floor is -1 (basement) and the floor is raised, it's half basement. |
| mezzanine | bool | Is this a mezzanine floor? |
| multilevel | bool | Does this unit have different levels on the same floor (stairs or ramps)? |
| <entrance> - Entrance data | ||
|---|---|---|
| share | set | Entrance sharing data. See <share> (Resource sharing data) for details. |
| <part> - Part data | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| type | type | Type. Supported types are:
|
| size | int | Size (in square meters). |
| house | bool | Belongs to the entire house? |
| beds | array | Available beds. Array of <bed> elements. See <bed> (Bed data) for details. |
| standard | bool | Has standard equipment? Used for kitchens only. Standard equipment includes: refrigerator, stove (without oven) and dishes |
| oven | bool | Has oven? Used for kitchens only. |
| iceChest | bool | Has ice-chest? Used for kitchens only. |
| fridgeIceChest | bool | Has combine fridge/ice-chest? Used for kitchens only. |
| dishWasher | bool | Has dish-washer? Used for kitchens only. |
| bathTub | bool | Has bathtub? Used for bathrooms only. |
| showerBath | bool | Has shower-bath? Used for bathrooms only. |
| shade | set | Sun shade data. Used for outer parts (terraces and balconies) only. See <shade> (Sun shade data) for details. |
| seaView | bool | Has sea view? Used for outer parts (terraces and balconies) only. |
| grill | set | Grill data. Used for outer parts (terraces and balconies) only. See <grill> (Grill data) for details. |
| relatedParts | array | Other parts related to this one. Array of <relatedPart> elements. See <relatedPart> (Related part data) for details. This element is deprecated. See <relate> (Related data). |
| relate | set | Related data. See <relate> (Related data) for details. |
| share | set | Sharing data. See <share> (Resource sharing data) for details. |
| <service> - Service data | ||
|---|---|---|
| terrTv | bool | Is terrestrial TV program available? |
| satTv | bool | Is satellite TV program available? |
| ac | set | Air conditioner usage data. See <ac> (Air conditioner data) for details. |
| centralHeating | set | Central heating usage data. See <centralHeating> (Central heating data) for details. |
| kitchen | set | Kitchen usage data. Kitchen service can exist only if accommodation unit type is room. See <kitchen> (Kitchen data) for details. |
| finalCleaning | set | Final cleaning data. See <finalCleaning> (Final cleaning service data) for details. |
| deposit | set | Deposit data. See <deposit> (Deposit data) for details. |
| pet | bool | Pet accommodation data. |
| <priceList> - Price list data | ||
|---|---|---|
| intervals | array | Prices by intervals. Array of <interval> elements. See <interval> (Interval data) for details. |
| year | int | Price list year. |
| discounts | array | Discounts and additional payments. Some types of discounts are related to accommodation unit, whilst others are related to the whole house. Discounts related to the whole house are applicable on every associated accommodation unit. Array of <discount> elements. See <discount> (Discount/additional payment data) for details. |
| lowPrice | bool | Accommodation unit has a low price? |
| <redirect> - Redirect links [URL] URL links for redirection. | ||
|---|---|---|
| house | string | House URL. |
| unit | string | Unit URL. |
| order | string | Ordering URL. |
| <rating> - Ratings (1-5) | ||
|---|---|---|
| place | int | Average place rating. Element has the following attributes:
|
| beach | int | Average beach rating. Element has the following attributes:
|
| accomodation | int | Average accomodation rating. Element has the following attributes:
|
| host | int | Average host rating. Element has the following attributes:
|
| total | int | Total average rating. Element has the following attributes:
|
| <image> - Image | ||
|---|---|---|
| self | array | Image variants. Array of <variant> elements. See <variant> (Image variant data) for details. Element has the following attributes:
|
| <bed> - Bed data | ||
|---|---|---|
| capacity | int | Person capacity. |
| type | type | Type. Supported types are:
|
| children | bool | Is it intended for children only? |
| <shade> - Sun shade data | ||
|---|---|---|
| exist | bool | Sun shade exists? |
| type | type | Sun shade type. Supported types are:
|
| <grill> - Grill data | ||
|---|---|---|
| exist | bool | Grill exists? |
| firewood | set | Firewood data. See <firewood> (Firewood data) for details. |
| <relatedPart> - Related part data | ||
|---|---|---|
| self | int | Related part ID. Element has the following attributes:
|
| <relate> - Related data | ||
|---|---|---|
| exist | bool | Is part related with any other part? |
| parts | array | Parts in our accommodation units (in our offering) which relate with this part. Array of <part> elements. See <part> (Related part data) for details. |
| host | bool | Is part related with part used by the host? |
| otherUnits | set | Other accommodation units (outside of our offering) which relate with this part. See <otherUnits> (Other accommodation units data) for details. |
| <share> - Resource sharing data | ||
|---|---|---|
| exist | bool | Is resource shared with anyone? |
| host | bool | Is resource shared with the host? |
| agencyUnits | array | Our accommodation units (in our offering) which share the resource. Array of <unit> elements. See <unit> (Accommodation unit reference data) for details. |
| otherUnits | set | Other accommodation units (outside of our offering) which share the resource. See <otherUnits> (Other accommodation units data) for details. |
| <ac> - Air conditioner data | ||
|---|---|---|
| exist | bool | Air conditioner exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <centralHeating> - Central heating data | ||
|---|---|---|
| exist | bool | Central heating exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <kitchen> - Kitchen data This is used only if accommodation unit type is room. | ||
|---|---|---|
| exist | bool | Kitchen exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| share | set | Sharing data. See <share> (Resource sharing data) for details. This element is deprecated. See <relate> (Related data). |
| <finalCleaning> - Final cleaning service data | ||
|---|---|---|
| exist | bool | Final cleaning service exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <deposit> - Deposit data | ||
|---|---|---|
| exist | bool | Deposit exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <firewood> - Firewood data | ||
|---|---|---|
| exist | bool | Firewood exists? |
| price | set | Pricing data. See <price> (Pricing data) for details. |
| <interval> - Interval data | ||
|---|---|---|
| from | date | Begin of interval (format is YYYY-MM-DD). Date string in YYYY-MM-DD format (ISO 8601). Time zone is Croatian - GMT+1 (+DST). |
| to | date | End of interval (format is YYYY-MM-DD). Date string in YYYY-MM-DD format (ISO 8601). Time zone is Croatian - GMT+1 (+DST). |
| prices | array | Prices by number of persons. First price is for maximum number of persons. Array of <price> elements. See <price> (Interval price data) for details. |
| <discount> - Discount/additional payment data | ||
|---|---|---|
| type | type | Discount type. Supported types are:
|
| name | string | Name. |
| value | set | Percent, money or freeDays value. See <value> (Discount/additional payment value) for details. |
| <value> - Discount/additional payment value Percent, money or freeDays amount. Negative values are discounts, positive values are additional payments. | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| percent | float | Percent value. |
| amount | float | Money amount value. Element has the following attributes:
|
| freeDays | int | Number of free days. Element has the following attributes:
|
| <variant> - Image variant data Image variants are versions of the same image, differentiated by size, listed if exist. | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| url | string | Image variant URL. |
| <price> - Pricing data | ||
|---|---|---|
| type | type | Price type. Supported types are:
|
| amount | float | Price amount. Element has the following attributes:
|
| unit | type | Price unit type. Supported types are:
|
| <unit> - Accommodation unit reference data | ||
|---|---|---|
| self | string | Accommodation unit name. Element has the following attributes:
|
| <parts> - Related parts data | ||
|---|---|---|
| part | set | Related part data. See <part> (Part data) for details. |
| <otherUnits> - Other accommodation units data | ||
|---|---|---|
| exist | bool | Other accommodation units exists? |
| count | int | Count of other accommodation units. |
| <part> - Related part data | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| direct | bool | Is it directly connected? Eg. bedroom could have private (directly connected) toilet. |
| thisUnit | bool | Part is used by this accommodation unit. |
| share | set | Sharing data. See <share> (Resource sharing data) for details. |
| <price> - Interval price data | ||
|---|---|---|
| amount | float | Price amount (per day). Element has the following attributes:
|
| persons | int | Number of persons. |
Example usage
Retrieve data of private accommodation unit with ID 1868.
https://www.adriatic.hr/services/rest/?method=Private_getUnit
&id=1868
&aid=af151
&lang=sl
&sig=2157c7bf020a291ccb305417651b00c4
Private_getAvailStatus
Get accommodation unit(s)'s availability status.
Request parameters
| id | list | Comma delimited list of accommodation unit IDs. Example: "1868,1869". This parameter is required. |
|---|---|---|
| i_from | date | Begin of interval. Allowed formats are YYYY-MM-DD and unix timestamp. This parameter is required. |
| i_to | date | End of interval. Allowed formats are YYYY-MM-DD and unix timestamp. This parameter is required. |
Response
| <status> - Availability data | ||
|---|---|---|
| avail | bool | All specified accommodation units are available? Element has the following attributes:
|
| units | array | Availability by accommodation unit. Array of <unit> elements. See <unit> (Accommodation unit availability) for details. |
| <unit> - Accommodation unit availability | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| avail | bool | Accommodation unit is available? Element has the following attributes:
|
Example usage
Get availability status of accommodation units with IDs 1868 and 1869 in date interval 2012-08-09 to 2012-08-15.
https://www.adriatic.hr/services/rest/?method=Private_getAvailStatus
&id=1868%2C1869
&i_from=2012-08-09
&i_to=2012-08-15
&aid=af151
&lang=sl
&sig=6c3ba357b11e1072467ee3b2a8ce1663
Private_getUnavailDates
Get accommodation unit unavailable dates.
Request parameters
| id | int | Accommodation unit ID. This parameter is required. |
|---|
Response
| <dates> - Unavailable dates data | ||
|---|---|---|
| self | array | Unavailable dates (if any). Array of <date> elements. See <date> (Unavailable date data) for details. |
| <date> - Unavailable date data | ||
|---|---|---|
| self | date | Date string in YYYY-MM-DD format (ISO 8601). Time zone is Croatian - GMT+1 (+DST). Element has the following attributes:
|
Example usage
Get unavailable dates of accommodation units with ID 2459.
https://www.adriatic.hr/services/rest/?method=Private_getUnavailDates
&id=2459
&aid=af151
&lang=sl
&sig=f03e9ceae26269b266003f4e70a2efbe
Geo_find
Search geography locations (except beaches). Method is pagination aware (results are split across multiple pages).
Request parameters
| id | int | Comma delimited list of region, riviera and place IDs. Example: "re-2,ri-17,pl-106". |
|---|---|---|
| q | string | Search string (case insensitive). |
| q_match | type | String matching mode. Hint: begin and begin_word modes can be used for implementation of location input field with autocomplete support. Supported types are:
|
| t | type | Location type. Supported types are:
|
| sort | type | Sort criterion. Supported types are:
|
| sort_dir | type | Sort direction. Supported types are:
|
| page | int | Page number. Default value is 1. |
| limit | int | Number of results per page (max. 25). Default value is 10. |
Response
| <list> - List data | ||
|---|---|---|
| items | array | Items on current page. Array of <item> elements. See <item> (List item data) for details. |
| pager | set | Set of pager elements. See <pager> (List pager data) for details. |
| <item> - List item data | ||
|---|---|---|
| id | string | Location ID. |
| name | string | Location name. |
| type | type | Location type. Supported types are:
|
| riviera | string | Riviera name. Available only if location type is place. Element has the following attributes:
|
| region | string | Region name. Available only if location type is place or riviera. Element has the following attributes:
|
| image | array | Image of location. Array of <variant> elements. See <variant> (Image variant data) for details. |
| coordinates | set | Geography coordinates. Available only if location type is place. See <coordinates> (Geography coordinates) for details. |
| <pager> - List pager data | ||
|---|---|---|
| totalItems | int | Total items that match search criteria. |
| totalPages | int | Total pages. |
| currentPage | int | Current page. |
| pageLimit | int | Maximum number of items per page. |
| <variant> - Image variant data Image variants are versions of the same image, differentiated by size, listed if exist. | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| url | string | Image variant URL. |
| <region> - Region data | ||
|---|---|---|
| name | string | Region name. |
| rivieras | array | References to all rivieras which belong to this region. Array of <riviera_ref> elements. See <riviera_ref> for details. |
| images | array | Region images. Array of <image> elements. See <image> for details. |
| <coordinates> - Geography coordinates | ||
|---|---|---|
| longitude | decimal | Geographical longitude. |
| latitude | decimal | Geographical latitude. |
| altitude | decimal | Geographical altitude. |
Example usage
Find geography locations with word 'hvar' in name.
https://www.adriatic.hr/services/rest/?method=Geo_find
&q=hvar
&aid=af151
&lang=sl
&sig=b01c6631dac94943efe7fabcadcd8bc9
Geo_get
Retrieve geography location data. Supported location types are place, beach, riviera and region.
Request parameters
| id | string | Geography location data. This parameter is required. |
|---|
Response
| <location> - Location data | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| type | type | Location type. Supported types are:
|
| region | set | Region name. Available only if location type is region. See <region> (Region data) for details. Element has the following attributes:
|
| riviera | set | Riviera name. Available only if location type is riviera. See <riviera> (Riviera data) for details. Element has the following attributes:
|
| place | set | Place name. Available only if location type is place. See <place> (Place data) for details. Element has the following attributes:
|
| beach | set | Beach name. Available only if location type is beach. See <beach> (Beach data) for details. Element has the following attributes:
|
| <region> - Region data | ||
|---|---|---|
| name | string | Region name. |
| rivieras | array | References to all rivieras which belong to this region. Array of <riviera> elements. See <riviera> (Riviera reference) for details. |
| images | array | Region images. Array of <image> elements. See <image> (Image) for details. |
| <riviera> - Riviera data | ||
|---|---|---|
| name | string | Riviera name. |
| region | string | Region name. Element has the following attributes:
|
| type | type | Riviera type. Supported types are:
|
| places | array | References to all places which belong to this riviera. Array of <place> elements. See <place> (Place reference) for details. |
| images | array | Riviera images. Array of <image> elements. See <image> (Image) for details. |
| <place> - Place data | ||
|---|---|---|
| name | string | Place name. |
| riviera | string | Riviera name. Element has the following attributes:
|
| region | string | Region name. Element has the following attributes:
|
| type | type | Place type. Supported types are:
|
| largerPlace | set | Larger place data. See <largerPlace> (Larger place data) for details. |
| islet | set | Islet data. See <islet> (Islet data) for details. |
| beachesGeneral | set | General info on beaches which belong to this place. See <beachesGeneral> (Place beaches data) for details. |
| beaches | array | References to all beaches which belong to this place. Array of <beach> elements. See <beach> (Beach reference) for details. |
| images | array | Place images. Array of <image> elements. See <image> (Image) for details. |
| coordinates | set | Geography coordinates. See <coordinates> (Geography coordinates) for details. |
| <beach> - Beach data Note that beaches don't have names. | ||
|---|---|---|
| place | string | Place name. Element has the following attributes:
|
| riviera | string | Riviera name. Element has the following attributes:
|
| region | string | Region name. Element has the following attributes:
|
| type | type | Main beach type. Supported types are:
|
| types | array | All available beach types. Array of <type> elements. See <type> (Beach type) for details. |
| access | type | Sea access type. Supported types are:
|
| private | bool | Beach is 'private' (isolated)? |
| naturalShade | bool | Beach has a natural shade? |
| shower | bool | Beach has a shower? |
| entertainment | bool | Beach has an entertainment content? |
| nudeOfficial | bool | Beach is official nudist beach? |
| nudeSuitable | bool | Beach is suitable for nudism? |
| other | set | Data of other beaches in the same place. See <other> (Other beaches data) for details. |
| images | array | Beach images. Array of <image> elements. See <image> (Image) for details. |
| <region> - Region reference | ||
|---|---|---|
| self | string | Region name. Element has the following attributes:
|
| <riviera> - Riviera reference | ||
|---|---|---|
| self | string | Riviera name. Element has the following attributes:
|
| <place> - Place reference | ||
|---|---|---|
| self | string | Place name. Element has the following attributes:
|
| <beach> - Beach reference | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| <largerPlace> - Larger place data | ||
|---|---|---|
| exist | bool | Larger place exists? |
| name | string | Larger place name (only if the larger place exists). |
| id | string | Larger place ID (only if the larger place exists). |
| boatTransport | bool | Boat transport is necessary to get to the larger place (only if the larger place exists)? |
| boatDistance | int | Boat transport distance from larger place (nautical miles, only if the larger place exists). |
| <islet> - Islet data | ||
|---|---|---|
| exist | bool | Place is on an islet? |
| name | string | Islet name (only if the islet exists). |
| transportCar | bool | Car can be transported onto the islet (only if the islet exists)? |
| <beachesGeneral> - Place beaches data | ||
|---|---|---|
| nudeOfficial | bool | Place has an official nudism beach? |
| nudeSuitable | bool | Place has a beach suitable for nudism? |
| entertainment | bool | Place has a beach with an entertainment content? |
| naturalShade | bool | Place has a beach with a natural shade? |
| shower | bool | Place has a beach with a shower? |
| private | bool | Place has a beach that is 'private' (isolated)? |
| type | type | Main beach type. Supported types are:
|
| types | array | All available beach types. Array of <type> elements. See <type> (Beach type) for details. |
| access | type | Place has a beach with this access type. Supported types are:
|
| <other> - Other beaches data | ||
|---|---|---|
| type | type | Main beach type. Supported types are:
|
| types | array | All available beach types. Array of <type> elements. See <type> (Beach type) for details. |
| access | type | Sea access type. Supported types are:
|
| nudeOfficial | bool | Official nudism beach? |
| nudeSuitable | bool | Suitable for nudism? |
| entertainment | bool | Entertainment content? |
| naturalShade | bool | Natural shade? |
| shower | bool | Has shower? |
| private | bool | 'Private' (isolated)? |
| <image> - Image | ||
|---|---|---|
| self | array | Image variants. Array of <variant> elements. See <variant> (Image variant data) for details. Element has the following attributes:
|
| <variant> - Image variant data Image variants are versions of the same image, differentiated by size, listed if exist. | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| url | string | Image variant URL. |
| <coordinates> - Geography coordinates | ||
|---|---|---|
| longitude | decimal | Geographical longitude. |
| latitude | decimal | Geographical latitude. |
| altitude | decimal | Geographical altitude. |
| <type> - Beach type | ||
|---|---|---|
| self | type | Beach type. Supported types are:
|
Example usage
Retrieve data of place with ID 'pl-220'.
https://www.adriatic.hr/services/rest/?method=Geo_get
&id=pl-220
&aid=af151
&lang=sl
&sig=eaee7df5be098c4cabd98959f69e910f
Retrieve data of beach with ID 'be-223'.
https://www.adriatic.hr/services/rest/?method=Geo_get
&id=be-223
&aid=af151
&lang=sl
&sig=eaee7df5be098c4cabd98959f69e910f
Retrieve data of riviera with ID 'ri-17'.
https://www.adriatic.hr/services/rest/?method=Geo_get
&id=ri-17
&aid=af151
&lang=sl
&sig=eaee7df5be098c4cabd98959f69e910f
Retrieve data of region with ID 're-1'.
https://www.adriatic.hr/services/rest/?method=Geo_get
&id=re-1
&aid=af151
&lang=sl
&sig=eaee7df5be098c4cabd98959f69e910f
Geo_getNames
Retrieve geography location names. Supported location types are place, riviera and region. Method can be used for implementation of location input field with autocomplete support.
Request parameters
NoneResponse
| <names> - Location names | ||
|---|---|---|
| self | array | Names of all available locations (except beaches). Array of <name> elements. See <name> (Location name) for details. |
| <name> - Location name | ||
|---|---|---|
| self | string | Element has the following attributes:
|
Example usage
Get geography location names.
https://www.adriatic.hr/services/rest/?method=Geo_getNames
&aid=af151
&lang=sl
&sig=2887345166a8e931f218270b6421849b
System_getText
Retrieve method text.
Request parameters
| m | type | Method name. Supported types are:
|
|---|
Response
| <text> - Text data | ||
|---|---|---|
| self | n/a | Element has no value. Element has the following attributes:
|
| params | array | Method parameters with associated text. Array of <param> elements. See <param> (Method parameter data) for details. |
| nodes | array | Method response XML nodes with associated text. Array of <node> elements. See <node> (Method response XML node data) for details. |
| types | array | Types with associated text. Array of <type> elements. See <type> (Type data) for details. |
| <param> - Method parameter data | ||
|---|---|---|
| self | string | Parameter text. Element has the following attributes:
|
| <node> - Method response XML node data | ||
|---|---|---|
| self | string | Node text. Element has the following attributes:
|
| <type> - Type data | ||
|---|---|---|
| params | array | Method parameters which use this type. Array of <param> elements. See <param> (Method parameter name) for details. |
| nodes | array | Method response XML nodes which use this type. Array of <node> elements. See <node> (Method response XML node path) for details. |
| options | array | Type options. Array of <option> elements. See <option> (Type option data) for details. |
| <param> - Method parameter name | ||
|---|---|---|
| self | string | Parameter name. |
| <node> - Method response XML node path | ||
|---|---|---|
| self | string | XPath path. |
| <option> - Type option data | ||
|---|---|---|
| self | string | Option text. Element has the following attributes:
|
Example usage
Retrieve text of method Geo_find.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Geo_find
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Geo_get.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Geo_get
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Private_find.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Private_find
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Private_findReviews.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Private_findReviews
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Private_getHouse.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Private_getHouse
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Private_getUnit.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Private_getUnit
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Private_getAvailStatus.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Private_getAvailStatus
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Private_getUnavailDates.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Private_getUnavailDates
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Order_get.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Order_get
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Order_addItem.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Order_addItem
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
Retrieve text of method Order_setNotes.
https://www.adriatic.hr/services/rest/?method=System_getText
&m=Order_setNotes
&aid=af151
&lang=sl
&sig=25553b551636e9346ed33da7286ee7de
System_getError
Retrieve error text translation.
Request parameters
| code | int | Error code. This parameter is required. |
|---|
Response
| <error> - Error data | ||
|---|---|---|
| message | text | Translated error message. Element has the following attributes:
|
Example usage
Retrieve error message translation for error code 200.
https://www.adriatic.hr/services/rest/?method=System_getError
&code=200
&aid=af151
&lang=sl
&sig=68f132dd19aff816ac67e0e5e56c308c
Retrieve error message translation for error code 217.
https://www.adriatic.hr/services/rest/?method=System_getError
&code=217
&aid=af151
&lang=sl
&sig=68f132dd19aff816ac67e0e5e56c308c