What is the best PHP vehicle tracking system class? #vehicle tracking system
Edit
by Ignatius Charewa - 5 years ago (2020-03-24)
Getting distance to calculate fuel used and cost from map
| A company suffers from fuel misuse, reckless driving and unauthorized journeys.
The system must calculate fuel used, distance traveled, granted driver permission and time taken to cover a certain journey. |
Ask clarification
2 Recommendations
This class can calculate routes between two locations with OpenStreetMap API.
It can send HTTP requests to the OpenStreetMap API Web server to query the route between two given locations, using a given type of vehicle.
The class can return the route details like the distance to travel, the duration of the trip, trip instructions, and a list of segments that connect locations with given coordinates that form the route.
The returned route can be downloaded or saved to a file in GPX format.
| by Stefan Kientzler package author 425 - 5 years ago (2020-03-28) Comment
I do not know if it is the best class, but it fulfills the requirements in my project (determining the route and estimated travel time between two or more locations).
The class can also save the calculated route for visualization as a GeoJSON or GPX file.
In connection with the optionally specified OSM-Nominatim class routes can also be determined without existing geolocations. |
This class can compute routes of trucks delivering client orders.
It takes the geographic coordinates of a depot and the locations clients with orders to be delivered by a fleet of trucks.
The class uses a 2-phase algorithm for solving the open capacitated vehicle routing problem.
It tries to minimize the total route cost by trying all possible combinations. The trucks are not required to return to the depot.
| by Manuel Lemos 26695 - 5 years ago (2020-03-25) Comment
There is this class for finding routes that you may use to calculate distances but this is not a complete system as you seem to be looking for. |