You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should allow both or migrate to just under_score notation. E.g. prepare.ch.weightings vs. prepare.chWeightings or prepare.minNetworkSize vs. prepare.min_network_size
Also check CH properties for better naming in general:
routing.ch.heading.force instead of force_heading_ch
prepare.ch.weightings instead of prepare.chWeightings
Others:
a bit ugly: alternative_route.max_paths vs. algorithm=alternativeRoute
make all routing options with or without a routing. prefix. See alternative_route vs. routing.flexMode.xy
At the moment I tend to create converter code that converts all get and put calls with camelCase to under_score and rewrite all put requests and the config to use under_score. This way we always use one notation internally, but keep compatibility.
I'll soon implement this where all of the old settings should work as before (except maybe rarely used like force_heading_ch) or other options introduced in 0.7-SNAPSHOT
Activity
devemux86 commentedon Mar 10, 2016
In long term it'd be probably better to have only one notation.
But what about API current compatibility?
karussell commentedon Mar 10, 2016
At the moment I tend to create converter code that converts all get and put calls with camelCase to under_score and rewrite all put requests and the config to use under_score. This way we always use one notation internally, but keep compatibility.
karussell commentedon May 13, 2016
I'll soon implement this where all of the old settings should work as before (except maybe rarely used like force_heading_ch) or other options introduced in 0.7-SNAPSHOT
The plan is to
routing.for all the areas mentioned above.
What do you think?
devemux86 commentedon May 13, 2016
I think it's a good plan. 👍
convert properties into the same under_score notation, #682
karussell commentedon May 13, 2016
Please have a look into #719
merged master into #682 branch
merged branch #682 where under score notation is preferred for the wh…
[-]CamelCase vs. under_score notation[/-][+]CamelCase vs. underscore notation[/+]more underscore notation #682