Graphhopper: edit motorway speed online -


i'm trying edit motorway speed user's preferences , return route result of change. have input field labeled 'motorway' on webpage's form , when submitting, value change speed of motorways.

i have see answer here: does graphhopper support dynamic edge weights? , know how edit edges , through java file.

the plan have user preferences road speeds (for busy times), regularity of turnings , traffic lights. point in right direction appreciated

by default graphhopper import process stores speed , accessibility (forward+backward) information edge.

so, first step create custom flagencoder stores type of road e.g. integer somewhere in long/int flags. can use encodedvalue class this.

the next step create custom weighting implementation calculates speed flag information stored. weighting called while querytime can take account user preferences, can changed per query.

note: you'll need disable ch when allow changing preferences every query

note: change valuable core graphhopper, if implement let know via pull request ;)


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -