← Back to Blog
A A A

Prompt for Travel Itinerary Web Page

Prompt:

“I have a travel itinerary with several hotel stays, organized by options. Each option includes multiple hotels across different dates, with details like hotel name, room type, check-in date, check-out date, and geographic coordinates (latitude and longitude). Here is a screenshot showing the basic structure and data of these options.

I would like an interactive HTML page that meets the following requirements:

Map Visualization

Calendar Visualization

Option Selector

Styling and UI

Here’s a sample of the data structure for each option:

{
    "1": [
        { "name": "OUTRIGGER Reef Waikiki Beach Resort", "description": "King room with seaview", "coordinates": [21.278905, -157.832289], "checkIn": "2024-11-16", "checkOut": "2024-11-20" },
        { "name": "Courtyard Oahu North Shore", "description": "King room with seaview", "coordinates": [21.6436, -157.9231], "checkIn": "2024-11-20", "checkOut": "2024-11-22" },
        { "name": "Aston Maui Kaanapali Villas", "description": "Junior Suite with courtyard view", "coordinates": [20.931, -156.6927], "checkIn": "2024-11-22", "checkOut": "2024-11-26" }
    ],
    "2": [
        { "name": "Marriott's Maui Ocean Club - Molokai, Maui & Lanai Towers", "description": "King room with seaview", "coordinates": [20.9204, -156.6946], "checkIn": "2024-11-16", "checkOut": "2024-11-19" },
        { "name": "Hana Kai Maui Resort", "description": "Keanini Condo", "coordinates": [20.755, -155.9848], "checkIn": "2024-11-19", "checkOut": "2024-11-21" },
        { "name": "Renaissance Residences Oahu Honolulu", "description": "Partial Ocean View, Studio, 1 King", "coordinates": [21.2814, -157.831], "checkIn": "2024-11-21", "checkOut": "2024-11-23" }
    ],
    "3": [
        { "name": "Aston Maui Kaanapali Villas", "description": "Junior Suite with courtyard view", "coordinates": [20.931, -156.6927], "checkIn": "2024-11-16", "checkOut": "2024-11-20" },
        { "name": "Hana Kai Maui Resort", "description": "Keanini Condo", "coordinates": [20.755, -155.9848], "checkIn": "2024-11-20", "checkOut": "2024-11-22" },
        { "name": "Courtyard Oahu North Shore", "description": "King room with seaview", "coordinates": [21.6436, -157.9231], "checkIn": "2024-11-22", "checkOut": "2024-11-23" },
        { "name": "OUTRIGGER Reef Waikiki Beach Resort", "description": "King room with seaview", "coordinates": [21.278905, -157.832289], "checkIn": "2024-11-23", "checkOut": "2024-11-25" }
    ]
}

Please ensure the HTML is modular and the JavaScript is structured so that I can easily add new options and update data without needing extensive code changes.

I want this to be a well-polished, user-friendly, and professional experience.”