@ Override public double getMaxSpeed ( String highwayTag , double _default ) { // As defined in: https://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Maxspeed#Motorcar switch ( highwayTag ) { case "motorway" : return Integer . MAX_VALUE ; case "trunk" : return Integer . MAX_VALUE ; case "residential" : return 100 ; case "living_street" : return 4 ; default : return super . getMaxSpeed ( highwayTag , _default ) ; } }
Germany contains roads with no speed limit . For these roads this method will return Integer . MAX_VALUE . Your implementation should be able to handle these cases .