Results 1 to 1 of 1
-
08-30-2010, 06:37 AM #1Web Hosting Master
- Join Date
- Aug 2008
- Posts
- 1,679
Hotel booking? where to get the database from?
Hello everyone,
I was looking at installing a booking software(for hotels) on my new website, I am trying to work out how can all these websites manage to find out if the rooms are empty or not without being connected directly to the hotel itself.
I checked out one website and it had this code for the booking calender:
<script type="text/javascript">
var b_experiments = {},
WIDTH,
booking = {
env : {
"b_action" : 'hotel',
"b_google_maps_key_params" : 'key=ABQIAAAAEG168dBcRndNV70R9mDglhSZn_smZpFKc3SoS1v7FyDshy3QMxSgeH0qWTH24Gc7je-iJ9DSXiNmcA&client=gme-booking&indexing=true',
"b_lang" : 'en',
"b_this_urchin" : '/hotel/mt/the-palace.html?label=gog235jc&x2597=1&x2649=0&x2626=1&x2714=0&x2693=1&x2703=2&x2691=0&x2770=1&x2563=0&x2781=1& ;x590=4&x2775=0&x2719=1&x2733=1&x2669=0&x2631=0&x2549=0&x2598=1&x2755=2&x2728=1&x2731=0&',
"setvar_affiliate_is_bookings2" : 1,
transl_close_x : 'close',
browser_lang: 'en',
b_aid: '304142',
b_sid: '4a23a978236c08c553af8973a8f502f1',
ip_country: 'mt',
b_selected_currency: '',
pageview_id: '211449de32490039',
aid: '304142',
icons: 'http://x.bstatic.com/static/img',
b_weekdays: [],
b_simple_weekdays: ['Mo','Tu','We','Th','Fr','Sa','Su'],
b_simple_weekdays_for_js: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],
b_long_weekdays: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],
"error" : {}
},
ensureNamespaceExists : function ( namespaceString ) {
if ( !booking[namespaceString] ) {
booking[namespaceString] = {};
}
},
timestamp : new Date()
};
booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '1' ),
"name": 'Monday',
"short": 'Mon',
"shorter": 'Mon',
"shortest": 'Mo'
});
booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '2' ),
"name": 'Tuesday',
"short": 'Tue',
"shorter": 'Tue',
"shortest": 'Tu'
});
booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '3' ),
"name": 'Wednesday',
"short": 'Wed',
"shorter": 'Wed',
"shortest": 'We'
});
booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '4' ),
"name": 'Thursday',
"short": 'Thu',
"shorter": 'Thu',
"shortest": 'Th'
});
booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '5' ),
"name": 'Friday',
"short": 'Fri',
"shorter": 'Fri',
"shortest": 'Fr'
});
booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '1' ),
"b_number": parseInt( '6' ),
"name": 'Saturday',
"short": 'Sat',
"shorter": 'Sat',
"shortest": 'Sa'
});
booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '1' ),
"b_number": parseInt( '7' ),
"name": 'Sunday',
"short": 'Sun',
"shorter": 'Sun',
"shortest": 'Su'
});
function Tip() {}
if (document.getElementById) {
document.write('<style type="text/css">');
document.write(".inlineJsRequired { display: inline; }");
document.write(".blockJsRequired { display: block; }");
document.write(".blocktoggle { display: none; }");
document.write("<\/style>");
}
var _gaq = _gaq || [];
</script>
<!--[if IE]>
<script type="text/javascript">
document.createElement('time');
</script>
<![endif]-->
It looks like there is code or API key which is used with Google, any idea how this works? or where I can get a booking calender for hotels.
I always wondered if the hotels use the same technology to send their informations out on the net to tell the travel agents when the hotel is fully booked. any idea?
Thanks,
Ben
Similar Threads
-
How do hotel booking engines know what rooms are available?
By JD1702 in forum Web Hosting LoungeReplies: 3Last Post: 01-28-2010, 12:04 AM -
looking someone to build a bus and hotel booking portal
By sweechi in forum Employment / Job OffersReplies: 1Last Post: 09-14-2007, 12:32 PM -
[For Hire] Hotel booking site with IAN
By GigaByteSolutions in forum Employment / Job OffersReplies: 0Last Post: 08-17-2006, 07:28 AM -
hotel reservation and booking system
By Ferman in forum Programming DiscussionReplies: 2Last Post: 07-09-2004, 07:51 AM -
Reservation, hotel, booking type of script
By Odd Fact in forum Hosting Software and Control PanelsReplies: 3Last Post: 11-16-2003, 10:05 PM