Skip to content

Commit

Permalink
Very custom dutch fix to skip all muncipals
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmoree committed Dec 23, 2021
1 parent da16f5c commit cf184c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import java.util.ArrayList;
import java.util.Map;

import com.neovisionaries.i18n.CountryCode;

/**
* Export nominatim data
*
Expand Down Expand Up @@ -280,6 +282,7 @@ private void completePlace(PhotonDoc doc) {
final AddressType doctype = doc.getAddressType();
for (AddressRow address : addresses) {
AddressType atype = address.getAddressType();
if (doc.getCountryCode() == CountryCode.NL && address.rankAddress == 14) continue;

if (atype != null
&& (atype == doctype || !doc.setAddressPartIfNew(atype, address.getName()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class AddressRow {
private final Map<String, String> name;
private final String osmKey;
private final String osmValue;
private final int rankAddress;
public final int rankAddress;

public AddressType getAddressType() {
return AddressType.fromRank(rankAddress);
Expand Down

0 comments on commit cf184c4

Please sign in to comment.