I am working on a project whith GraphHopper and Hadoop. The idea is that I have in Hadoop a big volume of spatiotemporal data from millions of trips. I mainly have acces to the coordinates, the hour and the speed for each point. I would like to use this data to update the edge speed flag of every edge in GraphHopper to get more accurate travel time predictions. I am already able to update the speed of each edge using this code snipet:
However, what I ultimately would like to do is to set the speed for different time ranges. For example, set one speed value for 9:00 to 10:00, a different speed value for 10:00 to 11:00, etc. This for every edge in the graph, so that when I build a route, the graph will predict a travel time based on the time when the travel takes place.
So, is there a way to store in a single edge several speed values linked to a specific time range? How could I do this?
Thanks a lot in advance.