Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Province is wrong #92

Open
Naberdz opened this issue Mar 18, 2024 · 1 comment
Open

Province is wrong #92

Naberdz opened this issue Mar 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Naberdz
Copy link

Naberdz commented Mar 18, 2024

When we choose country as belgium and set following: 2627, Schelle Frans Cretenlaan 35 in the field at checkout we have Province/Region as Oost-Vlaanderen instead of Antwerpen.

How can this be fixed ?

response from api :

[
    {
        "language": "nl-BE",
        "address": {
            "country": "Belgium",
            "locality": "Schelle",
            "street": "Frans Cretenlaan",
            "postcode": "2627",
            "building": "35",
            "buildingNumber": 35,
            "buildingNumberAddition": null
        },
        "mailLines": [
            "Frans Cretenlaan 35",
            "2627 Schelle"
        ],
        "location": {
            "latitude": 51.126624,
            "longitude": 4.341681,
            "precision": "Address"
        },
        "isPoBox": false,
        "country": {
            "name": "Belgium",
            "iso3Code": "BEL"
        },
        "details": {
            "belRegion": {
                "nisCode": 2000,
                "primaryName": "Vlaanderen",
                "nlName": "Vlaanderen",
                "frName": "Flandre",
                "deName": "Flandern"
            },
            "belProvince": {
                "nisCode": 10000,
                "primaryName": "Antwerpen",
                "nlName": "Antwerpen",
                "frName": "Anvers",
                "deName": "Antwerpen"
            },
            "belDistrict": {
                "nisCode": 11000,
                "primaryName": "Antwerpen",
                "nlName": "Antwerpen",
                "frName": "Anvers",
                "deName": "Antwerpen"
            },
            "belMunicipality": {
                "nisCode": 11038,
                "primaryName": "Schelle",
                "nlName": "Schelle",
                "frName": "Schelle",
                "deName": "Schelle",
                "officialLanguages": [
                    "nl-BE"
                ],
                "facilityLanguages": []
            },
            "belMunicipalSection": {
                "primaryName": "Schelle",
                "nlName": "Schelle",
                "frName": null,
                "deName": null
            },
            "belStreet": {
                "primaryName": "Frans Cretenlaan",
                "nlName": "Frans Cretenlaan",
                "frName": null,
                "deName": null
            },
            "belBuilding": {
                "number": 35,
                "bisNumber": null,
                "boxNumber": null,
                "validated": true,
                "language": "nl-BE"
            }
        }
    }
]
@JerrySmidt
Copy link
Contributor

Hi Naberdz,

Thanks for your feedback. The module doesn't currently set the province with the international autocomplete. We'll look into adding this functionality in a future version.

@JerrySmidt JerrySmidt added the enhancement New feature or request label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants