-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Adding intermediate steps #94
Comments
After much research, here's what you should focus on:
|
Cache systemAs the cities are not supposed to move and the growth of the inhabitants is minimal, we can consider that each calculation made will keep its result for several years. Several solutions are available to us. Use PostgreSQL databaseTo make the most of the performance of SQL, it would make more sense to store the cached data directly in another table linked by a foreign key directly to the cities in the database. However, this system may not be the most efficient. Use Redis databaseRedis, key-value database used in particular for its ultra fast access to data. However, using such a system will imply processing the WKT format outside of PostgreSQL. Thus, the intervention of an external code, in this case, javascript that will manage the call to the Redis database and then PostegreSQL.
|
Dataset to load database: |
Maybe merge with addok ? |
I don't really know addok, but I don't think it's a good idea to integrate it. Adding it to addok, under redis will not allow us to benefit from the spatial methods integrated in DBMS like PostgreSQL |
It's also important to have both suggestions from UniCovoit for stops, but also let the driver add custom ones (autocompleted by addok?) in case they pass through smaller towns or a different route |
Justification
Currently, when we add a trip, it takes two cities, the departure and the arrival. So, when searching for a trip, if we search for a trip Departure City -> City on the trip, we will not find.
Trips are restricted to the single cities of the trip, and no flexibility is really possible. This is further emphasized by the fact that we cannot see the entire list of trips, not allowing manual search.
A system allowing this flexibility is therefore more than necessary
Explanation
If we consider that when the person, during the entry of the trip, enters the arrival and departure of his trip. It is theoretically possible to find his route and therefore the possible stopovers.
It would therefore be necessary to add, between step 2 and 3, a part that lists all the possible stopovers found on the route (within 5km of the route).
This may be possible using the APIs of google maps or openstreet map. The user would have the possibility to modify / delete / add steps which would recalculate the itinary and potentially the possible steps.
A visualization with a map can also be possible to allow the user to better visualize how his route is arranged.
Thus, when searching for a route, the algorithm would no longer be based solely on the city of departure and arrival but also on all the automatic / informed by the user.
The text was updated successfully, but these errors were encountered: