GIScience / openrouteservice

🌍 The open source route planner api with plenty of features.
https://openrouteservice.org
GNU General Public License v3.0
1.43k stars 392 forks source link

Common driving profile superclass from which car and hgv would inherit #362

Closed aoles closed 5 years ago

aoles commented 5 years ago

There are a lot of similarities between CarFlagEncoder and HeavyVehicleFlagEncoder which lead to duplicated code. In order to make things easier to maintain and to comprehend move all the stuff shared between these two profiles into a DrivingFlagEncoder, similar to the approach taken in CommonBikeFlagEncoder.

rabidllama commented 5 years ago

Postponing to a later version as this is relatively low priority at the minute

aoles commented 5 years ago

Prerequisite for https://github.com/GIScience/openrouteservice/issues/372.

aoles commented 5 years ago

Addressed in https://github.com/GIScience/openrouteservice/commit/8ed5668098680dc30f5b1c65c692287f6e270d7a, https://github.com/GIScience/openrouteservice/commit/ebd2dd080e02000ec101ff453c96982da442503b, https://github.com/GIScience/openrouteservice/commit/eaf23eae9872ed8964b77ad98be169b2a294932f and https://github.com/GIScience/openrouteservice/commit/e29d92a60f6c37ef9d5bb5814591899295dfaeb2.