Table of Contents
Developed a user-friendly ride-hailing website to eciently connect drivers and passengers using Laravel.
LandingPage.mp4
- Real-time booking and trip notifications.
- Distance calculation and display.
- Mapping of pick-up and drop-off points.
- Trip rating.
- Account management, booking history.
Checkout here Create web notifications using Laravel and Pusher Channels
See the registration and initialization process here Instructions for initializing the Google Maps API
Enable the following API services in the Library section of Projects registered with Google:
Maps JavaScript API helps integrate and leverage the diverse features of Google Maps directly into web applications. This API allows you to display an interactive map on your website, which not only helps users identify locations but also provides an interactive experience and detailed geographic information.
Maps JavaScript API helps integrate and leverage the diverse features of Google Maps directly into web applications. This API allows you to display an interactive map on your website, which not only helps users identify locations but also provides an interactive experience and detailed geographic information.
Google's Places API provides features for working with information about places and business locations. This API allows integrating and leveraging detailed geographic data from Google Maps into the application. Using the Places API, it is possible to perform tasks such as searching for places, identifying details about a specific place, and displaying detailed information about nearby places. The API provides the ability to search based on criteria such as keywords, place type, location, and distance.
Directions API allows you to integrate directions into your app or website. This API provides the means to calculate and display detailed directions for routes between previously defined locations.
Geocoding API will perform conversions between text addresses and geographic coordinates (latitude, longitude), and vice versa.
Note that these services are not completely free. Although the quota of services can be quite "generous", if used in a development environment that requires multiple debugging, it will be easy to exceed the prescribed quota and then Google will lower the limit. quota and required to pay a fee to continue using the service.
1. The customer opens the ride-hailing app and selects the current address, and the system will automatically retrieve the address.
2. The customer will enter the destination or select the destination on the map. The app will calculate the distance and the fare the customer has to pay for the trip.
3. The customer confirms the ride.
4. Meanwhile, the driver who wants to accept the ride must update their current location.
5. Oh, the driver just received a ride request from the previous customer. A popup appears showing the ride details, including the pickup location, destination, customer's name, and more. The driver who will receive the ride is determined based on the current distance between them and the customer. The driver with the shortest distance will be assigned the ride, while the other drivers will be placed in a queue.
4. The ride is in progress.
5.The ride is completed, and the customer rates the ride.
6.The customer can review the ride
7. And the driver can also review their ride.
- Clone the repo
git clone https://github.com/ptduy14/ride-hailing-service-web-app.git
- Compose
composer install
- Generate Key
php artisan key:generate
- Setup Database
Open the file .env (Assuming wamp or xampp) Edit values to match your database Add empty database using phpmyadmin Include that name in the DB_DATABASE
DB_HOST=localhost
DB_DATABASE=your_db_name
DB_USERNAME=root
DB_PASSWORD=
- Get Tables
php artisan migrate
- Run the project
php artisan serve