komoot / photon

an open source geocoder for openstreetmap data
Apache License 2.0
1.83k stars 278 forks source link

Canadian postcodes seems slightly wrong #797

Closed felix-geovelo closed 2 months ago

felix-geovelo commented 2 months ago

Hello !

It seems that Canadian postcodes are slightly wrong in the result given by photon. Example: With the input "5664 avenue Jeanne-d'Arc montreal" (https://photon.komoot.io/api?q=5664%20avenue%20Jeanne-d%27Arc) with obtain the following result:

  "features": [
    {
      "geometry": {
        "coordinates": [
          -73.57284865993546,
          45.55947595
        ],
        "type": "Point"
      },
      "type": "Feature",
      "properties": {
        "osm_id": 1187619697,
        "extent": [
          -73.5729229,
          45.5595384,
          -73.572774,
          45.5594139
        ],
        "country": "Canada",
        "city": "Montréal",
        "countrycode": "CA",
        "postcode": "H1X 1J5",
        "locality": "Rosemont",
        "county": "Agglomération de Montréal",
        "type": "house",
        "osm_type": "W",
        "osm_key": "building",
        "housenumber": "5664",
        "street": "Avenue Jeanne-D'arc",
        "district": "Rosemont–La Petite-Patrie",
        "osm_value": "apartments",
        "state": "Québec"
      }
    }
  ],
  "type": "FeatureCollection"
}

The result is globally good (position, etc), except the postcode, that give "H1X 1J5" instead of the real one beeing "H1X 2G3" Is this a Photon issue or could it be a Nominatim issue ? Thank you in advance