Places To Stay

Start Search View Assignment

Returns

{
  locations: [
    {
      ID: "2",
      name: "Premier Inn London Waterloo",
      lat: "51.501748",
      lng: "-0.11648600000000897",
      google_id: "ChIJ_75-fbgEdkgRp4ql6Rq76ao",
      street_number: "85",
      address_line1: "York Road",
      town: "London",
      postcode: "SE1 7NJ",
      country: "United Kingdom",
      location_type: "Hotel",
      belongs_to: "1",
      rooms: [
        {
          ID: "1",
          room_description: "2 beds with a view",
          location_id: "2",
          number_of_beds: "2",
          room_price: "2800",
          bookedDates: [
            {
              start: "2016-05-07",
              end: "2016-05-09"
            },
            {
              start: "2016-05-10",
              end: "2016-05-12"
            }
          ]
        },
        {
          ID: "2",
          room_description: "3 beds with a view",
          location_id: "2",
          number_of_beds: "3",
          room_price: "3000",
          bookedDates: [
            {
              start: "2016-05-20",
              end: "2016-05-23"
            },
            {
              start: "2016-05-10",
              end: "2016-05-12"
            },
            {
              start: "2016-05-13",
              end: "2016-05-16"
            },
            {
              start: "2016-05-17",
              end: "2016-05-18"
            },
            {
              start: "2016-05-08",
              end: "2016-05-09"
            }
          ]
        }
      ]
    },
    {
      ID: "3",
      name: "Premier Inn London Leicester Square",
      lat: "51.51104650000001",
      lng: "-0.13018379999994067",
      google_id: "ChIJJUyxFNIEdkgRajb-0tlYT_0",
      street_number: "1",
      address_line1: "Leicester Square",
      town: "London",
      postcode: "WC2H 7BP",
      country: "United Kingdom",
      location_type: "Hotel",
      belongs_to: "1",
      rooms: [
        {
          ID: "3",
          room_description: "3 beds with a view",
          location_id: "3",
          number_of_beds: "3",
          room_price: "3500",
          bookedDates: [

          ]
        },
        {
          ID: "4",
          room_description: "2 beds with a view",
          location_id: "3",
          number_of_beds: "2",
          room_price: "3000",
          bookedDates: [

          ]
        }
      ]
    },
    {
      ID: "4",
      name: "Premier Inn London Blackfriars",
      lat: "51.512878",
      lng: "-0.1055149999999685",
      google_id: "ChIJ24SRYq0EdkgRAksghbg1UM8",
      street_number: "1",
      address_line1: "Dorset Rise",
      town: "London",
      postcode: "EC4Y 8EN",
      country: "United Kingdom",
      location_type: "Hotel",
      belongs_to: "1"
    },
    {
      ID: "5",
      name: "Premier Inn London Southwark Borough Market",
      lat: "51.5071442",
      lng: "-0.09287050000000363",
      google_id: "ChIJgXlxzVcDdkgRWi5_YPdOOf4",
      street_number: "34",
      address_line1: "Park Street",
      town: "London",
      postcode: "SE1 9EF",
      country: "United Kingdom",
      location_type: "Hotel",
      belongs_to: "1",
      rooms: [
        {
          ID: "6",
          room_description: "Room for two with a view",
          location_id: "5",
          number_of_beds: "2",
          room_price: "4500",
          bookedDates: [

          ]
        }
      ]
    }
  ]
}
            

2) Web service must be able to make a booking

Service response


        

3) Places to stay should utilise AJAX front end - View here

4) Visit Colorado should be able to look up locations using API - View here

5) Places to stay should show users local area - View here

6) Display results as markers and text - View here

7) Visit Colorado should be able to make bookings using API - View here

8) When the user clicks on a marker a pop up of text displays explaining location - View here

9) Interactive calendar should be implemented - View here

Admin can be found here, username: info@visitcollerado.com, password: Solent