Developer documentation · Hotel Map widget
Supercharge your attendance by showing accommodations near your venue. Revolugo’s Hotel Map lets your attendees browse and book hotels directly from your website.
Quick start
Embed the Hotel Map in minutes
Help your attendees find the best deal during your event. Embed our high-converting Hotel Map on your event’s accommodation page, then sit back and relax.
No redirection
Attendees browse and book hotels around your venue without leaving your website.
One script tag
Copy and paste a single snippet wherever the map should appear in your HTML.
More revenue
Every booking is tracked back to your organization through your tracking token.
Standard integration
Integrate the widget with a Widget ID
1. Paste the script tag
Copy and paste the following script tag anywhere in your HTML, at the spot where you want the hotel map to be displayed.
<script
id="revolugo-widget"
src="https://widget.revolugo.com/embed"
data-tid="[TRACKING_ID]"
data-wid="[WIDGET_ID]"
></script>2. Replace the identifiers
The values between brackets must be replaced by the unique identifiers provided by our operations team:
[TRACKING_ID] is a tracking token related to your organization.
[WIDGET_ID] is the identifier of your event.
3. Override when needed
You can also add other attributes to the script tag. Those attributes take precedence over the settings attached to the widget ID. The exhaustive list is described below.
Wide scale integration
Hotel Map with custom settings
Generate a widget dynamically and customize its settings by passing additional information to the script tag, such as the latitude and longitude of your event or its dates. Options are specified through attributes of the HTML script tag.
Ideally, inject context data (check-in/check-out dates, location, etc.) and other data attributes from your backend’s template renderer, e.g. <%= latitude %> with Ruby on Rails or <?php echo $latitude ?> with PHP.
Here is a snippet exposing the exhaustive list of customizable attributes:
<script
id="revolugo-widget"
src="https://widget.revolugo.com/embed"
data-address="[EVENT_ADDRESS]"
data-event-start-date="[YYYY-MM-DD]"
data-event-end-date="[YYYY-MM-DD]"
data-check-in-date="[YYYY-MM-DD]"
data-check-out-date="[YYYY-MM-DD]"
data-currency="[CURRENCY]"
data-color-widget-main-1="[HEX_VALUE_COLOR]"
data-color-widget-main-2="[HEX_VALUE_COLOR]"
data-description="[EVENT_DESCRIPTION]"
data-map-first-on-mobile="[true|false]"
data-height="[WIDGET_HEIGHT]"
data-lang="[LANGUAGE]"
data-latitude="[LATITUDE]"
data-longitude="[LONGITUDE]"
data-logo="[LOGO_PICTURE_URL]"
data-marker="[MARKER_PICTURE_URL]"
data-name="[WIDGET_NAME]"
data-wid="[YOUR_WIDGET_ID]"
data-tid="[YOUR_TRACKING_ID]"
data-c-firstname="[VALUE]"
data-c-lastname="[VALUE]"
data-c-salutation="[dr|miss|mr|mrs|ms|prof]"
data-c-email="[VALUE]"
data-c-nationality="[VALUE]"
data-c-phone="[VALUE]"
data-c-phone-country="[VALUE]"
data-o-name="[VALUE]"
data-o-address="[VALUE]"
data-o-city="[VALUE]"
data-o-zip="[VALUE]"
data-o-country="[VALUE]"
data-metadata-key1="[VALUE]"
data-metadata-key2="[VALUE]"
data-metadata-key3="[VALUE]"
></script>Reference
Attribute index
Every attribute is optional unless stated otherwise. Attributes passed on the script tag override the settings attached to your Widget ID.
| Attribute | Group | Summary |
|---|---|---|
data-latitudedata-longitude | Event location | Coordinates of the event venue |
data-address | Event location | Venue address, geocoded to place the venue marker |
data-check-in-datedata-check-out-date | Dates | Initial stay dates used to poll hotel availability |
data-name | Event details | Widget name shown in the venue info window |
data-description | Event details | Short event description shown in the venue info window |
data-event-start-datedata-event-end-date | Event details | Event dates, highlighted in the datepicker |
data-marker | Event details | Event logo used as the venue marker on the map |
data-logo | Event details | Event logo displayed on the hotel view |
data-color-widget-main-1 | Widget colors | Main color of the widget (hex, without #) |
data-color-widget-main-2 | Widget colors | Secondary color of the widget (hex, without #) |
data-tid | Booking tracking | Your organization’s tracking token |
data-lang | Widget settings | Default language of the widget content |
data-currency | Widget settings | Default currency for displayed prices |
data-height | Widget settings | Height of the widget on your page (px, vh, em) |
data-adult-count | Widget settings | Number of adults for the initial search |
data-room-count | Widget settings | Number of rooms for the initial search |
data-map-first-on-mobile | Widget settings | Show the map view first on mobile |
data-wid | Widget settings | Unique identifier of your event |
data-c-* | Quick checkout | Customer personal info to prefill checkout |
data-o-* | Quick checkout | Customer organization info for invoices |
data-metadata-* | Additional metadata | Custom key/values stored with each booking |
Attribute details
Event location
Latitude & longitude
data-latitudedata-longitude
To make the hotel map point directly to your event’s venue, provide the latitude and longitude of the event. If one of the two attributes is missing, both are ignored.
data-latitude="48.8271991"
data-longitude="2.2859551"Address of your event’s venue
data-address
The address of your event’s venue, used as the initial position of the Hotel Map’s venue marker.
data-address="Event's venue address"Address vs. geolocation
When data-address is provided, our backend attempts to convert it into coordinates using a third-party geocoding service.
If geocoding fails, we fall back to data-latitude and data-longitude.
We strongly recommend prioritizing data-latitude and data-longitude. Geocoding may fail or return incorrect locations unless the address is highly precise (street, zip code, city and country). Use data-address only when you cannot provide precise coordinates.
Attribute details
Dates
Check-in & check-out dates
data-check-in-datedata-check-out-date
The initial check-in and check-out dates of the widget, used to poll hotel availabilities.
- Format
- YYYY-MM-DD
- Check-in default
- current date
- Check-out default
- check-in + 1 day
data-check-in-date="2025-12-01"
data-check-out-date="2025-12-06"Attribute details
Event details
Name
data-name
The name of your widget. It is displayed in the widget information window on the Hotel Map, when the venue marker is hovered.
data-name="Event name"Description
data-description
The description of your event, displayed in the widget information window on the map when the venue marker is hovered. Keep it to one short sentence.
data-description="Event description"Event start & end dates
data-event-start-datedata-event-end-date
Provides the dates of the event to the widget. Red ticks are added under each date of the range in the datepicker, giving your customers visual feedback on your event dates.
- Format
- YYYY-MM-DD
data-event-start-date="2025-12-01"
data-event-end-date="2025-12-06"Venue map marker
data-marker
Show your event’s logo as the map marker for the event location. Provide the URL of the image only. It makes the event clearly visible on the map without hiding content.
- Recommended size
- 70 × 70 px
data-marker="https://www.website.com/img/marker-logo.png"Event logo
data-logo
Show your event’s logo on the hotel view. Provide the URL of the image only.
- Recommended size
- 512 × 512 px
data-logo="https://www.website.com/img/banner-logo.png"Attribute details
Widget colors
Widget main color
data-color-widget-main-1
Controls the main color of the widget.
- Default
- 007FFF
- Format
- hex, no #
data-color-widget-main-1="007FFF"Widget secondary color
data-color-widget-main-2
Controls the secondary color of the widget.
- Default
- 45DCA4
- Format
- hex, no #
data-color-widget-main-2="45DCA4"Attribute details
Booking tracking
Tracking token
data-tid
The tracking token ID assigned to your organization to track your earnings. Reach out to us by email or chat to obtain it.
This token is unique to your organization and lets us attribute every booking made through a Revolugo widget you integrated on a website.
data-tid="xxxx-xxxx-xxxx-xxxx-xxxx"Attribute details
Widget settings
Language
data-lang
Controls the default language of the widget content. If not provided, the user’s browser language is used.
- en-US
- English
- fr-FR
- French
- Default
- browser language
data-lang="fr-FR"Currency
data-currency
Controls the default currency used to display prices. If not provided, the currency of the user’s IP address country is used.
data-currency="EUR"Supported currencies (136)
AED · AFN · ALL · AMD · ANG · AOA · ARS · AUD · AWG · AZN · BAM · BBD · BDT · BGN · BIF · BMD · BND · BOB · BRL · BSD · BWP · BZD · CAD · CDF · CHF · CLP · CNY · COP · CRC · CVE · CZK · DJF · DKK · DOP · DZD · EGP · ETB · EUR · FJD · FKP · GBP · GEL · GIP · GMD · GNF · GTQ · GYD · HKD · HNL · HRK · HTG · HUF · IDR · ILS · INR · ISK · JMD · JPY · KES · KGS · KHR · KMF · KRW · KYD · KZT · LAK · LBP · LKR · LRD · LSL · MAD · MDL · MGA · MKD · MMK · MNT · MOP · MRO · MUR · MVR · MWK · MXN · MYR · MZN · NAD · NGN · NIO · NOK · NPR · NZD · PAB · PEN · PGK · PHP · PKR · PLN · PYG · QAR · RON · RSD · RUB · RWF · SAR · SBD · SCR · SEK · SGD · SHP · SLL · SOS · SRD · STD · SVC · SZL · THB · TJS · TOP · TRY · TTD · TWD · TZS · UAH · UGX · USD · UYU · UZS · VND · VUV · WST · XAF · XCD · XOF · XPF · YER · ZAR · ZMW
Height
data-height
Controls the height of the widget in your event’s web page. The widget always takes the whole available width, so we highly recommend placing it where the window is wide for a more user-friendly display.
- Units
- px · vh · em
data-height="80vh"Adult count
data-adult-count
At initial load, the widget displays offers for this number of adults.
- Default
- 1
data-adult-count="2"Room count
data-room-count
At initial load, the widget displays offers for this number of rooms. The room count cannot be greater than the adult count.
- Default
- 1
- Max
- adult count
data-room-count="2"Map view on mobile
data-map-first-on-mobile
At initial load on mobile / responsive screens, the widget displays the hotel offers map view by default.
- Values
- true · false
- Default
- true
data-map-first-on-mobile="false"Widget ID
data-wid
The unique identifier of your event in our system. It is associated with pre-defined widget settings that are applied automatically. Other attributes described here override those defaults. An unrecognized or missing widget ID is ignored.
data-wid="xxxx-xxxx-xxxx-xxxx"Attribute details
Quick checkout
If you already know your customer’s personal information before displaying the widget, activate the quick checkout by passing it as attributes of the script tag. Your customers can then book a hotel room in the blink of an eye.
Customer personal info
data-c-firstnamedata-c-lastnamedata-c-salutationdata-c-emaildata-c-nationalitydata-c-phone
The attributes required to activate the quick checkout:
- Salutation
- dr · miss · mr · mrs · ms · prof
data-c-firstname="John"
data-c-lastname="Doe"
data-c-salutation="mr"
data-c-email="john.doe@example.com"
data-c-nationality="FR"
data-c-phone="+33 6 123 345 67"Customer organization info
data-o-namedata-o-vatdata-o-addressdata-o-citydata-o-statedata-o-zipdata-o-country
These attributes can be passed along with the customer information so the widget can generate invoices for your customer’s reservation.
data-o-name="John Doe's Organization"
data-o-vat="FR99123456789"
data-o-address="1 avenue des Champs Élysées"
data-o-city="Paris"
data-o-state="state"
data-o-zip="75008"
data-o-country="FR"Attribute details
Additional metadata
Custom metadata
data-metadata-xxxxx
Reconcile bookings made through the widget with your own customers by passing custom metadata attributes to the script tag, for instance the ID in your system of the customer who booked a hotel room.
These custom data attributes are merged into one JSON object stored along with the customer booking data.
data-metadata-customer-id="xxxxxxx"
data-metadata-order-id="xxxxxxx"Metadata keys are stored and returned snake_cased by our Booking API.
data-metadata-customer-id="XyZXyZXyZ"
data-metadata-order-id="XyZXyZXyZ"{
"customer_id": "XyZXyZXyZ",
"order_id": "XyZXyZXyZ"
}