Skip to content
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

Traffic for Car journeys - Discussion #4

Open
2 tasks
zabuTNT opened this issue Oct 1, 2021 · 1 comment
Open
2 tasks

Traffic for Car journeys - Discussion #4

zabuTNT opened this issue Oct 1, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@zabuTNT
Copy link
Member

zabuTNT commented Oct 1, 2021

Manage traffic.

Step 1:

  • from Osm way/node

Step 2:

  • from Datex II -> convert to Osm ways/nodes
@zabuTNT zabuTNT added the enhancement New feature or request label Oct 1, 2021
@zabuTNT zabuTNT changed the title Traffic Traffic for Car journeys Oct 1, 2021
@zabuTNT
Copy link
Member Author

zabuTNT commented Feb 24, 2023

I'm not sure if we should add these features or use a specific router for car journey, for instance OSRM.
Anyway we can create an updater that update the car speed for each streetEdge, so if we have x,y,z as start_node,end_node,speed :

graph.getStreetEdges()
        	.stream()
        	.forEach(streetEdge -> {
        		if(streetEdge.getStartOsmNodeId() == x && streetEdge.getEndOsmNodeId() == y) {
        			streetEdge.setCarSpeed(z);
        		}
        		
        	});

@zabuTNT zabuTNT changed the title Traffic for Car journeys Traffic for Car journeys - Discussion Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant