Skip to content

Commit

Permalink
Fix typo convertCallValueToPriority into convertClassValueToPriority
Browse files Browse the repository at this point in the history
  • Loading branch information
ratrun committed Oct 10, 2015
1 parent dfb8993 commit e690513
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -484,7 +484,7 @@ protected int handlePriority( OSMWay way, int priorityFromRelation )
} }


// Conversion of class value to priority. See http://wiki.openstreetmap.org/wiki/Class:bicycle // Conversion of class value to priority. See http://wiki.openstreetmap.org/wiki/Class:bicycle
private PriorityCode convertCallValueToPriority( String tagvalue ) private PriorityCode convertClassValueToPriority( String tagvalue )
{ {
int classvalue; int classvalue;
try try
Expand Down Expand Up @@ -566,12 +566,12 @@ void collect( OSMWay way, TreeMap<Double, Integer> weightToPrioMap )
if (classBicycleSpecific != null) if (classBicycleSpecific != null)
{ {
// We assume that humans are better in classifying preferences compared to our algorithm above -> weight = 100 // We assume that humans are better in classifying preferences compared to our algorithm above -> weight = 100
weightToPrioMap.put(100d, convertCallValueToPriority(classBicycleSpecific).getValue()); weightToPrioMap.put(100d, convertClassValueToPriority(classBicycleSpecific).getValue());
} else } else
{ {
String classBicycle = way.getTag("class:bicycle"); String classBicycle = way.getTag("class:bicycle");
if (classBicycle != null) if (classBicycle != null)
weightToPrioMap.put(100d, convertCallValueToPriority(classBicycle).getValue()); weightToPrioMap.put(100d, convertClassValueToPriority(classBicycle).getValue());
} }
} }


Expand Down

0 comments on commit e690513

Please sign in to comment.