Skip to content

placeSelect is not working properly on some addresses #10

Description

@Abderrahim-WADDIZ

The result of the callback placeSelect is not the same depending on the address filled in the input
For the address 7 Avenue Jean Moulin, 80400 Ham, France We got the following data that doesn't contain any information about the address

{
    "type": "Feature",
    "properties": {
        "feature_type": "details",
        "categories": [
            "building"
        ],
        "datasource": {
            "sourcename": "openstreetmap",
            "attribution": "© OpenStreetMap contributors",
            "license": "Open Database Licence",
            "url": "https://www.openstreetmap.org/copyright",
            "raw": {
                "osm_id": 208017375,
                "building": "yes",
                "osm_type": "w"
            }
        },
        "place_id": "51b2dd59be02a0084059a1f8174860e04840f00102f901df17660c00000000"
    },
    "geometry": {
        "type": "Polygon",
        "coordinates": [
            [
                [
                    3.0775467,
                    49.7529472
                ],
                ....
            ]
        ]
    }
}

And for the other addresses we got:

{
    "type": "Feature",
    "geometry": {
        "type": "Point",
        "coordinates": [
            2.943587,
            42.700277
        ]
    },
    "properties": {
        "country_code": "fr",
        "housenumber": "1",
        "street": "Chemin De La Roseraie",
        "country": "France",
        "county": "Pyrénées-Orientales",
        "datasource": {
            "sourcename": "openaddresses",
            "attribution": "© OpenAddresses contributors",
            "license": "BSD-3-Clause License"
        },
        "postcode": "66000",
        "state": "Occitania",
        "district": "Perpignan",
        "city": "Perpignan",
        "state_code": "OCC",
        "state_COG": "76",
        "lon": 2.943587,
        "lat": 42.700277,
        "formatted": "1 Chemin De La Roseraie, 66000 Perpignan, France",
        "address_line1": "1 Chemin De La Roseraie",
        "address_line2": "66000 Perpignan, France",
        "department_COG": "66",
        "timezone": {
            "name": "Europe/Paris",
            "offset_STD": "+01:00",
            "offset_STD_seconds": 3600,
            "offset_DST": "+02:00",
            "offset_DST_seconds": 7200,
            "abbreviation_STD": "CET",
            "abbreviation_DST": "CEST"
        },
        "plus_code": "8FJ4PW2V+4C",
        "plus_code_short": "PW2V+4C Perpignan, Pyrénées-Orientales, France",
        "result_type": "building",
        "rank": {
            "confidence": 0,
            "confidence_city_level": 0,
            "confidence_street_level": 0,
            "match_type": "full_match"
        },
        "place_id": "512e724f57778c0740590c923eada2594540c00203e2034b6f70656e6164647265737365733a616464726573733a66722f636f756e747279776964652d6164647265737365732d636f756e7472792e6373763a62633961616332366433396161316537"
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions