Places are a geographically entity used by OpenBooking to identify the location of an accommodation object. Basically, Places are real places, cities or points of interested. The have a unique ID which is assigned to the accommodation object and can be used to query and filter.
A Place hat the following attributes:
Place ID
Official name
Type (i.e. city)
Longitude/Latitude coordinates
ZIP Code and country
Language spoken
For Switzerland, Places contain also the following attributes::
R-Key of Switzerland Tourism
Touristic region (i.e. Bernese Oberland)
Places contain many alias-names and names on different languages to be able to do full-text searches, i.e. for auto-suggest text boxes.
Example of a Place:
1
{
2
"_id":"OCH536",
3
"coordinates":{
4
"lat":46.65685092735951,
5
"lng":7.435815282377841
6
},
7
"name":"Oberwil i.S.",
8
"searchfield":"Oberwil i.S. Rossberg",
9
"language":"de",
10
"type":"city",
11
"regionId":"007",
12
"country":"CH",
13
"zip":["3765"],
14
"region":{
15
"de":"Berner Oberland",
16
"en":"Bernese Oberland",
17
"fr":"Oberland Bernois",
18
"it":"Oberland Bernese"
19
}
20
}
Copied!
Types
A Place is of a specific type, which can be:
city
region
Regions
In OpenBooking you can create Regions (Places of type region) which are lists of Places that belong together and can be used for querying and filtering. For example, Zermatt Tourism considers the following three places to be "Zermatt":
Zermatt
Täsch
Randa
Instead of executing three different queries you can create a Region in the Admin Console and put in the three Places. After the Region is created, you can use it to query and filter by that region.
Regions are completely customizable and are not shared with other client in OpenBooking
Regions are live filters, which means they work immediately after they are created
You can create as many Place Collections as you want