All sentences or passages quoted in this report, or computer code of any form whatsoever used and/or submitted at any stages, which are taken from other people’s work have been specifically acknowledged by a clear citation of the source, specifying author, work, date, and the page(s). Any part of my own written work, or software coding, which is substantially based upon other people’s work, is duly accompanied by clear citation of the source, specifying author, work, date, and the page(s). I understand that failure to do this amount to plagiarism and will be considered grounds for failure in this module and degree examination as a whole.
Name: Alaeddin Alhamoud
Table of Abbreviations
Long … Longitude
MVC … Model-View-Controller
API …Application Programming Interface
UI …User Interface
XML …Extensible Mark-up Language
OS …Operating System
SMS … Short Message Service
HTML… Hypertext Mark-up Language
APP …Application Program
URL …Uniform Resource Locator
HTTP …Hypertext Transfer Protocol
CSS … Cascading Style Sheets
SaaS … software as a service
IoT ... Internet of Things
IDE … Integrated development environment
DVLA … Driver and Vehicle Licensing Agency
As discussed in the abstract, car-sharing service is a type of short-term agreement/hiring of a car by the customer for a certain period. Short-term car rental services, otherwise called vehicle sharing frameworks, are increasing at a rapid rate which in turn ending up progressively regular methods for urban transport, the expected number by 2035 is 7.5 million shared vehicles on European roads . With their rising prominence, the operators of such systems introduce systematically numerous improvements to the functioning of services in order to fine-tune their offers to the requirements of their present and potential customers . Therefore, Car sharing service is a type of car rental agencies providing services for a short period of time.
To conclude, with all these advancements in the Automotive industry, we have noticed that big ventures are accepting these new technological solutions and they are willing to invest in the Research and Development of these ideas. In the current scene of things, these ideas have been accepted openly which lead to its commercial success. Thus, resulting in an abrupt growth in companies like ZIPCAR, Car2go & City Car Club, etc flourishing in the last couple of years.
Recent advancement and commercial success of the car share concept has grabbed the attention of many computer enthusiasts working in the IT industry as well as the researchers. Universities are an ideal environment as lots of students rent cars to commute to the university and back at a comparatively cheaper rate. Also, commercially customers are not satisfied with the intractable drop off at a static location. Our motivation is to bring a commercial web application which focuses on maximum user satisfaction. We are writing an algorithm in order to solve the booking problem also make it more dynamic by predicting the new location for the vehicle also we will be creating UI (Web Application) for user satisfaction. With the focus entirely on implementing such a Web App that will provide companies’ the ability to rent the maximum number of cars. At the same time, we will make sure all the users can drop-offs as per their convenient location which automatically leads to satisfaction.
With flexibility is the key, our goal is to implement an algorithm and then build software based on it to support a car-sharing system. With the focus on clients as they can book or reserve vehicle, for instance, rent a car from location A to B at 8 am and from B to A at 6 pm. However, it is not necessary that the drop-off location is the same as the pick-up location as it varies according to the client’s needs. Also, the system tries to serve as many requests as possible.
The software should take the user as a request, depends on the vehicles accessible at the location the user will be provided the maximum number of solutions they can be fulfilled without clashes, for example, if a request that includes a trip from A to B at 8 am to 9 am is accepted, then there must be a car available at location B at 9 am. Requests arrive over time, so the problem is an online problem.
The main motive of the project is to gain insight into the algorithmic difficulties of the problem and to come up with the ideas that produce a feasible solution to the customers as well the car rental companies. Also, to analyze those ideas and/or implement them in software which includes a user-friendly interface with responsive pages to be able to work on any device (Desktop, Laptop or Mobile).
The main objectives of the Car Share Web Application are listed below:
- Creating Responsive Friendly User Interfaces to help the End-Users to book a vehicle, and manage his profile such as:
- User Details.
- User Address.
- User Driving License.
- User booking and payment History with Full details.
- User Pending Orders with Full details.
- book and reserve the time slot for a car from the car company at a specific location.
- Allowing the end-user to give feedback on vehicles which he/she rents. It includes car condition and a rating.
- Control Panel (E-Portal) to check and manage the full website (Only for the company Employees).
- Dashboard to display the latest actions on the website(Booking, pending payments, number of users, etc).
- Adding Vehicle using the DVLA API or manually.
- Allows checking the vehicle timetable.
- Permissions (User-Roles) to allow the user to access the authorized pages only.
- Manage the users with the ability to change the Role.
- Allowing to Check and manage the Reservations.
- Finance to display the latest bank transactions, Order has been paid or unpaid.
- Approve Driving license, validation step to check the user driving license.
- Chart report shows the company performance.
- Allow the user to manage the website settings by add/edit the APIs keys.
In order to develop an effective/dynamic Web-based application, we have listed out the requirements that we will be working on to achieve the desired product. The real challenge for this project is to implement a strong reliable user-centric high-performance and provide other important features at the same time with faster data loading. To develop that we first need to understand and model a complex optimization problem arising in a practical application and come up with effective solution approaches. Also, integrating this logic in the front-end is one of the challenging aspects of this project. Furthermore, choosing the best type of database as we are building a web-based application to keep the saved data in the database with no effect on the performance of the device or storage space. Moreover, we are using a third-party application such as Google API to make the website more dynamic by displaying the vehicles on Google Map also using Google sign-in and Facebook login for easy registration, DVLA Search API giving the user ability to add UK vehicles just by providing vehicle registration number (Plate Number). Also, the Stripe payment gateway to handle the payment and charge the customer with various payment methods. We have also added additional API such Nexmo API to send SMS as a notification to inform the customer about his booking, SendGrid API (Email) To handle the Emails such as sending receipt email after booking a vehicle, confirm the customer email address. Furthermore, we are using Address API to add an address for the end-user by providing the postcode and the property number, without affecting the application performance.
After implementing the front and the APIs logic, our main challenge was to implement a booking and the predict car location logic. Upon careful analysis, we came across a booking logic which helps us to displays the available vehicles according to the user needs (Search based on Time and Date). We have tried to make it as efficient as possible so that multiple users can book consecutive booking based on the availability of time, for example, User A can book 10-11 and it allows User B to book the same car from 11-12 (considering both are not at the same location). Please note that in order to make it work we developed our simple algorithm in order to make bookings effectively. Also, we used the Quartz package Scheduling Framework to do the background jobs such as checking the booking table, in our case if the booking is not confirmed, it will automatically get deleted after 15 minutes. Please note that initially, we have implemented the booking logic for a short duration, however now we have implemented the full version so that customers can able to book it a minimum of 1 hour or 24 hours which is a whole day or anything between these two.
After implementing the database/frontend and connecting the respective APIs, our main goal is to add the authentications (Permissions/Roles) and then test our application with the help of end-users and upon their feedback that will be sent after each booking operation, we can enhance our application and make it more interactive. Also, we have hosted our website in order to test it online.
Nowadays, one of the most important mobility for traveling is cars, because of the flexibility and comfortability that provided by the car. Also owning a private car has many advantages as we mentioned at the beginning. However, there are many disadvantages too, for example, the cost of the expenses of the car tax, insurance, etc for people drive short distance or the car not needed for daily use, also the number of vehicles Increasing on the roads, causing many issues such as increasing in CO2 emission, congestion, and parking.
The previous issues of owning a private car can be solved with car sharing, “a type of car rental for people who want to rent a car to travel a short distance or for a short period of time” .
With car sharing the customer can have the advantages of a private vehicle that we have mentioned at the beginning of this section. However, car share sounds very promising according to Steiningeretal study predict the market of car share 9% in Austria, additional study prediction by Reinhardt and Muheim, there is a chance to increase the number of car share for the Mobility Switzerland service to 600,000 customers .
As we have discussed earlier, there have been a significant increase in car Share industry and many organizations such as Zipcar, Car2Go, etc has profited by realizing and taking advantage of the customers’ demands of having a cheap alternative for transportation.
According to research form Frost & Sullivan, the number of people using car-sharing services is expected to increase almost threefold from roughly 6 million in 2017 to almost 18 million by 2025 .
In this section will demonstrate an overview of different models of car sharing.
- Business to consumer (b2c)
The consumer can rent a vehicle from a company own fleet of vehicles; this category can be divided into two categories .
- Round trip Carshare: the driver must return the vehicle to the same station.
- One-way car share: the driver can drop off the vehicle at another location within the allowed area.
- Peer to Peer (p2p)
This type of car-sharing is individual rent.
- Business intermediary: car owners can list their car on the rental platform, to be available to rent by other people.
- Neighborhood sharing car owned by a group of people, allowing anyone to use when needed.
In addition, the differences can be also in the parking location .
- Station-based: it is like the traditional car rental, the cap pick-up form company location, must be a drop-off in one of the car locations.
- Free-floating: the driver can drop off the vehicle at any location.
There are many famous rental companies around the world adopted the car-share service, due to provides short team car rent. In this section will demonstrate some of these companies.
- Zip Car: an American company provides vehicles reservations by day, hour, or minutes, also Zip car provides annual and monthly membership. The company founded in 2000. Zip Car company has many features such as members can book a car using a mobile application or Phone. Also, the company provides an NFC card to open the car door for the members .
- Car2Go: German company, the company own fleet of the car nearly 14,000 cars, in 26 location around the world. By offering Smart and Mercedes-Benz cars, the user can make reservation car though the mobile application provides many features such as extend the booking time .
- Drive Now: the company owned by the car manufacturer BMW, to provide car-sharing service. The start of this company was in 2011 from Munich, Germany. Drive Now the company provides full-electric BMW i3s with the ability to book the vehicle per minutes. Besides, a variety of gasoline-powered and diesel vehicles. The company allows users to reserve cars through the mobile application. One of the mobile application features is to check the car the battery state of charge or fuel gauge, this makes the customer more satisfied before booking the car for his journey .
This section will explain the technical Specification, with the required tools to build a web application. However, after doing research about the best web development environment, database, and programming languages. also, previous expensive as a .NET developer. We have created a list of the technical specification to build a web application and back-end using various modern technologies.
- The development environment for the application is Microsoft Visual Studio IDE.
- The web application for this project is built on .NET Core platform / C#.NET.
- Using Microsoft Entity Framework Core 2.2 to handle the data flow between the SQL database and the website.
- using Microsoft Identity Core 2.2 to handle the security and the sessions for the users.
- Microsoft SQL Server Management to implement and design the database.
- We have used Icon library (Font awesome) to aid our UI design.
- JSON has been used to Receive or send, From/To the APIs.
- We have developed a database using Microsoft SQL database with .NET Core project.
- The important table includes User, Roles, Vehicles, Reservation, Current location of the vehicle, etc.
- In order to add the vehicles to the database, we have used DVLA Search API, it will fetch the necessary information from the API Provider. The data we are fetching it from the API it will be stored in the local database.
- Entity Framework Core to process and handle between the web application and the database.
- For reservation logic, we have implemented a Queue data structure, also we have added Booking time where we are storing begin/end time. Based on the Booked reservation we are checking the availability of the time slot.
- the Favourites feature so that all the users can add any vehicle to favorite list. Please note that we are displaying this dynamic feature along with the vehicle details.
- Reviews functionality along with ratings for the users. Everyone who uses the website can read reviews of certain vehicles.
- Feedback option which will be displayed once the user makes a payment. Feedback will tell us if the user is satisfied with the trip. Also, will be sent as an email to the user after finishing the trip.
In order to develop a dynamic web application and make the website easier to use by the users (Administrators, Customers). We have implemented the following APIs:
- Google API
- Google Maps: to display the vehicle using the map give the user more options.
- Google sign-in: to provide an easy option to login
- Google reCAPTCHA v3: to protect the web application from the bots.
- Google Charts: to display company performance.
- Address API: Once we add the postcode and house number it will give us all the address details. Connected Google maps with the address API by providing latitude and longitude information from the API.
- DVLA Search API: Once we add the car registration number, it will give us all the car details which include VIN, model name, manufactured year, etc.
- Stripe Payments gateway API: we are using stripe gateway to implements payments effectively.
- SMS Nexmo API: providing SMS gateway to notify the user about the booking status.
- Email SendGrid API: email service to notify the user about the booking, registration, payment, etc.
- Facebook login API: to provide the user easy way to log in.
To developing an effective Car Share Web-based Application, the features are listed as follows:
- Integrate the app with Address API. So that user can add its home address based on postcode and house number.
- The Application will provide a vehicle to be rented by the user.
- The User will provide the booking details such as booking date, Pickup time, Drop off time, and the pickup drop-off locations.
- The user will be able the see his current location on Google Map View, at the same time he can choose the drop off location.
- The website will provide the user vehicles available or will be physically in the location and the time he asked for.
- By choosing a vehicle from the Google Map will provide a user the vehicle details such as Model, Rate, Price, etc.
- The system will insert a booking record of the vehicle, that choose by the user.
- In case the user payment does not confirm, the booking will be canceled after 15 minutes.
- The End-user will receive Email and SMS as confirmation for his booking and the payment if it has been confirmed too.
- Integrate payment gateway using Stripe.
- DVLA search API to provide all the essential car details such as Model, color, Engine, etc.
- End-user can submit rating and feedback about the vehicle he drove it, at the same time he can add it to his favorite list.
- Recommended features
- Providing the location to pick up and where the user will the drop-off.
- Search feature to filter the list of the places by google map. The search input box will be auto-complete, for cities or postcode.
- Control Panel (CP/ e Portal) to manage the website.
- Vehicle inventory, to display the details with feedback about it.
- Using Google sign in and Facebook APIs to login.
- Add the User details such as his address using external API, Driving license, and use personal information.
- List of Order History (Paid, Unpaid) with details.
- List of Reservations (Past Reservations, Future Reservations) with details.
- Add Google Charts API for a dynamic report.
- Walk Me Feature to navigate the user to the car location using google map API.
- Drive Me as a simulation for the system.
- Optional features
- Open Vehicle Door by Mobile application using Smart Car API applied over 2015 only.
- add distance to the booking details such as kilometer or mile.
- verify the driving license by added it using DVLA API.
- Extend the booking time.
- inform the delay to the next customer by sending SMS or replace the vehicle if there any vehicle around.
- charge customer who caused the delay.
- IOS and Android mobile applications.
- In case the vehicle needs Key, sending SMS, to release the car key from the secured key bad.
- Make the booking more flexible for example add timing booking by minutes.
Find More Pdf File
 Katerina Bohmova, Yann Disser, Matus Mihalak, and Rastislav Sramek, 2016, Scheduling Transfers of Resources over Time: Towards Car-Sharing with Flexible Drop-Oﬀs, LATIN 2016 Conference, pp.14, [Online] Available at: https://www2.mathematik.tu-darmstadt.de/~disser/pdfs/BoehmovaDisserMihalakSramek16.pdf, [Accessed 03 May 2019].
 K Turoń, A Kubik, B Łazarz Bogusław, P Czech, and Z Stanik ,2018, Car-sharing in the context of car operation, Silesian University of Technology , pp.11, [Online] Available at: https://iopscience.iop.org/article/10.1088/1757-899X/421/3/032027/pdf, [Accessed 03 May 2019].
 Martin Repoux, Burak Boyacı, Nikolas Geroliminis, 2015, Simulation and optimization of one-way car-sharing systems with variant relocation policies, 94th Annual Meeting of the Transportation Research BoardAt: Washington D.C, pp.20, , [Online] Available at: https://www.researchgate.net/publication/302405209_Simulation_and_optimization_of_one-way_car-sharing_systems_with_variant_relocation_policies, [Accessed 03 May 2019].
 Steve Smith, 2018, Overview of ASP.NET Core MVC, Microsoft Corporation, [Online] Available at: https://docs.microsoft.com/en-us/aspnet/core/mvc/overview?view=aspnetcore-2.2 , [Accessed 01 May 2019].
 Hoang Lam, Thuan Thai, 2009, .Net Framework Essentials,3rd Edition, O’Reilly.
 Frost & Sullivan,2016, Future of Carsharing Market to 2025, [Online] Available at: http://www.frost.com/sublib/display-report.do?id=MB4D-01-00-00-00, [Accessed 04 May 2019].
 Lennard VAN DEN BERG, 2017, “The Road to the Future of Cars: Opportunities and Key Features for Car Sharing Services”, Radboud university, [Online] Available at:
 Rick Anderson, 2019, ” Introduction to Identity on ASP.NET Core”, Microsoft Docs, [ONLINE] Available at: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-2.2&tabs=visual-studio. [Accessed 01 May 2019].
 Google, 2019, Introducing reCAPTCHA v3, [ONLINE] Available at: https://www.google.com/recaptcha/intro/v3.html. [Accessed: 01 May 2019].
 Google, 2019, Google Sign-In, [ONLINE] Available at: https://developers.google.com/identity/. [Accessed: 01 May 2019].
 DropZoneJS, 2019, DropZone Library, [ONLINE] Available at: https://www.dropzonejs.com. [Accessed: 01 May 2019].
 Oracle, 2013, The Java EE 6 Tutorial, [ONLINE] Available at : https://docs.oracle.com/javaee/6/tutorial/doc/gkigr.html. [Accessed: 01 May 2019].
 Google, 2018, Maps Static API, [ONLINE] Available at : https://developers.google.com/maps/documentation/maps-static/intro. [Accessed: 01 May 2019].
 Wiki, 2017, Bootstrap (front-end framework), [ONLINE] Available at : https://en.wikipedia.org/wiki/Bootstrap_(front-end_framework) [Accessed: 01 May 2019].
 Wiki, 2019, Stripe, [ONLINE] Available at : https://en.wikipedia.org/wiki/Stripe_(company) [Accessed: 02 May 2019].
 Nexmo, About Nexmo, [ONLINE] Available at : https://www.nexmo.com/about-nexmo [Accessed: 03 May 2019].
 Quartz, what is Quartz, [ONLINE] Available at: https://www.quartz-scheduler.net/documentation/faq.html [Accessed: 03 May 2019].
 Facebook for Developers, Facebook Login Overview, [ONLINE] Available at: https://developers.facebook.com/docs/facebook-login/overview [Accessed: 06 May 2019].
 DVLA Search API, [ONLINE] Available at: http://dvlasearch.co.uk [Accessed: 06 May 2019].
 Google Chart API, 2018, Using Google Charts, [ONLINE] Available at: https://developers.google.com/chart/interactive/docs/ [Accessed: 09 May 2019].
 Microsoft Doc, 2015, Introduction to LINQ Queries (C#), [ONLINE] Available at: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/introduction-to-linq-queries [Accessed: 11 May 2019].
 Scott Addie and Tom Dykstra, 2019, Create web APIs with ASP.NET Core, Microsoft Doc, [ONLINE] Available at: https://docs.microsoft.com/en-us/aspnet/core/web-api/?view=aspnetcore-2.2 [Accessed: 11 May 2019].
 Software Testing Fundamentals, 2019, Test Case, [ONLINE] Available at: http://softwaretestingfundamentals.com/test-case/ [Accessed: 12 May 2019].
 Wiki, 2019, Zip Car, [ONLINE] available at: https://en.wikipedia.org/wiki/Zipcar [Accessed: 13 May 2019]
 Wiki, 2018, Drive Now, [ONLINE] available at: https://en.wikipedia.org/wiki/DriveNow [Accessed: 13 May 2019]
 Wiki, 2018, Car 2 Go, [ONLINE] available at: https://en.wikipedia.org/wiki/Car2go [Accessed: 13 May 2019]
 Fien Van den steen, 2018, 7.5 Million Shared Cars on European Roads, Fleeteurope, [ONLINE] available at: https://www.fleeteurope.com/en/smart-mobility/europe/features/75-million-shared-cars-european-roads?t%5B0%5D=Car%20sharing&curl=1 [Accessed: 13 May 2019].
 Richard Katzev, 2003, Car sharing: A New Approach to Urban Transportation Problems, Analyses of Social Issues and Public Policy 3(1):65 - 86, pp.41, DOI: 10.1111/j.1530-2415.2003.00015.x, [Online] Available at: https://www.researchgate.net/publication/227718696_Car_Sharing_A_New_Approach_to_Urban_Transportation_Problems, [Accessed 15 May 2019].