Skip to content

Commit

Permalink
Merge pull request #53 from flitsmeister/bac-1185-gitaar-beuningen-ewijk
Browse files Browse the repository at this point in the history
Skip nomination importance
  • Loading branch information
hendrikmoree authored Jun 8, 2023
2 parents 1539e82 + ee22471 commit 052f7c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public NominatimResult mapRow(ResultSet rs, int rowNum) throws SQLException {
.postcode(rs.getString("postcode"));

double importance = rs.getDouble("importance");
doc.importance(rs.wasNull() ? (0.75 - rs.getInt("rank_search") / 40d) : importance);
// doc.importance(rs.wasNull() ? (0.75 - rs.getInt("rank_search") / 40d) : importance);
doc.importance(0.75 - rs.getInt("rank_search") / 40d);

completePlace(doc);
// Add address last, so it takes precedence.
Expand Down

0 comments on commit 052f7c9

Please sign in to comment.