Giter VIP home page Giter VIP logo

project2-9's Introduction

Project 2

The project allows the users to search for their next holiday destination and find hotels, bars and restaurants, and tourist attractions in a city of their choice.
The live website can be found here.


The website uses the Google Maps API to find a city and provide the results of the search. Initially the map displays entire Europe, but when a country is selected, then the map zooms in on that country and city searches are limited only to that particular country. If no country is selected or 'All' is selected from the dropdown menu, then the searches may return cities from the entire world.
After selecting a city the map will zoom in on that city and the markers of a desired place type (which can be changed by clicking on any of the filters) will be displayed both on the map and the results table.
Clicking on a marker, either on a map or in results table, will provide more information about the place (address, telephone, rating and website).

Technologies Used

  • HTML
  • CSS
    • Bootstrap 4.3.1: grid and responsive design
  • Javascript
    • Google Maps API
  • Google Fonts: Roboto, Montserrat
  • Font Awesome icons

Features Left to Implement

  • use fitBounds() to calculate the country zoom level automatically
  • customize the map markers for different place types
  • results pagination (more results)

Testing

Manual testing has been performed in order to ensure everything works as intended (input fields, search results, buttons, links, responsiveness). The website was tested on different web browsers (Firefox, Chrome, Opera) on desktop and mobile devices. The following websites were used to validate the code:

  1. HTML: https://validator.w3.org/
  2. CSS: https://jigsaw.w3.org/css-validator/
  3. JS: https://jshint.com/

There were some issues I've encountered as I wasn't yet aware of the limitations of Google Maps API. I tried to limit the city search functionality only to European countries, only to find out that the ComponentRestrictions interface accepts only up to 5 country code strings. link
The other limitation is up to 20 results per query, which can be increased to max 60 results with Pagination. link

Deployment

The website was deployed on GitHub pages from the master branch.
To run the code locally download the project, unzip it and open the index.html file.
Or paste the following code into terminal to clone the repository: git clone https://github.com/m-sbt/project2.git

project2-9's People

Contributors

m-sbt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.