Import dnet-pace-core module in this project and use it after renaming to dhp-pace-core #319

Merged
giambattista.bloisi merged 198 commits from beta_with_pace_core into beta 2023-07-11 14:03:15 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit d2278fe358 - Show all commits

View File

@ -41,7 +41,7 @@ public class CityMatch extends AbstractComparator {
else {
if (codes1.isEmpty() ^ codes2.isEmpty())
return -1; //undefined if one of the two has no cities
return commonElementsPercentage(codes1, codes2) > Integer.parseInt(params.getOrDefault("threshold", "0")) ? 1.0 : 0.0;
return commonElementsPercentage(codes1, codes2) > Double.parseDouble(params.getOrDefault("threshold", "0.0")) ? 1.0 : 0.0;
}
}
}