Closed EPajares closed 3 years ago
Greetings,
This is a very interesting request and I willl think about it. This might entail an overhaul though since:
In the mean time, what can be done now is to create a new service: copy pgrServer.war
into secondaryRoutingServer.war
for example, drop it into Tomcat, and configure it to use the view/table that contains the user changes. Then, you can just point your specific users to the new routing service, while the rest can still access the original.
Regards,
Mario.
Thanks Mario for getting back to this request. I understand. I was wondering if it could be implemented in a way that the same graph is used by several users but maybe a userid could tells us which links should be loaded for the particular user. As currently, we use such functionality for our application GOAT where several users can access the same graph which is in fact a database table as we use the pgrouting approach. As I am not familiar with JGraphT structure I am not aware if something like this could be implemented.
From your description, pgRouting
will be the best suited for your use-case because of its dynamic functionality in graph creation. Loading the entire graph into memory at startup makes pgrServer less flexible.
Yes pgRouting is definitely the king concerning flexibility. I will explore a bit more possibilities of loading the graph in memory while allowing flexible "network patches".
Thanks in any case!
Hello. Ok to close this issue already? Let me know if there's anything I can do to help.
Thanks @mbasa! We can close this issue.
Hello @EPajares. I know this is not your requested use-case, but I am able now to change route costs dynamically without having to reload the entire graph for every request, very much similar to car, bicycle, foot profiles of other routing engines. The requested cost can of course come from PostgreSQL. Just in case this might be useful for your project.
This sounds great! Thank you for the update. I will have a closer look at it.
Hi,
thanks a lot for this interesting project. I was wondering if it would be very difficult to implement a user-based network change capability into the project.
e.g. imagine one user would like to add a new network link to the graph and wants to perform routing operations with this changed graph. However, at the same time other users which are using the same graph should not be affected by this network change. Instead, their routing operation should use no changes or their own changes.
I was wondering if there is any direction you could point me in. As we are currently using a pgRouting for this but we would favor a solution loading the network in memory due to performance.
Cheers,
Elias