question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inaccurate postal code and address data

See original GitHub issue

Hi Guys,

We are using your address search functionality across several of our sites, but we are seeing some weird results, particularly related to postal codes in our main markets, Sweden, Norway, Denmark and the UK.

The issues are reproduceable through the web portal https://community.algolia.com/places/ , and also in the API.

Here are a few “rough” examples. I have verified the expected data through local postcode registers as well as the competition google maps.

Please advice if this data is due for an update soon, or we would have to use a more accurate service provider, to help our customers fill out their address data.

Query 1: Bergthorasgade 15, Copenhagen, Region Hovedstaden, Denmark

Response (Wrong suburb and postal code);

{
  "query": "Bergthorasgade 15",
  "suggestion": {
    "name": "Bergthorasgade 15",
    "administrative": "Region Hovedstaden",
    "city": "Copenhagen",
    "suburb": "Christianshavn",
    "country": "Denmark",
    "countryCode": "dk",
    "type": "address",
    "latlng": {
      "lat": 55.6641,
      "lng": 12.58
    },
    "postcode": "0999",
    "highlight": {
      "name": "<em>Bergthorasgade</em> <em>15</em>",
      "city": "Copenhagen",
      "administrative": "Region Hovedstaden",
      "country": "Denmark",
      "suburb": "Christianshavn"
    },
    "value": "Bergthorasgade 15, Copenhagen, Region Hovedstaden, Denmark"
  }
}

Should return;

{
  "query": "Bergthorasgade 15",
  "suggestion": {
    "name": "Bergthorasgade 15",
    "administrative": "Region Hovedstaden",
    "city": "Copenhagen",
    "suburb": "København S",
    "country": "Denmark",
    "countryCode": "dk",
    "type": "address",
    "latlng": {
      "lat": 55.6641,
      "lng": 12.58
    },
    "postcode": "2300",
    "highlight": {
      "name": "<em>Bergthorasgade</em> <em>15</em>",
      "city": "Copenhagen",
      "administrative": "Region Hovedstaden",
      "country": "Denmark",
      "suburb": "København S"
    },
    "value": "Bergthorasgade 15, Copenhagen, Region Hovedstaden, Denmark"
  }
}

Query 2: Adolf Fredriksgatan 7, Malmö, Skåne län, Sweden

Response (Wrong postal code);

{
  "query": "Adolf Fredriksgatan 7, Malmö, Skåne län, Sweden",
  "suggestion": {
    "name": "Adolf Fredriksgatan 7",
    "administrative": "Skåne län",
    "city": "Malmö",
    "suburb": "Fridhem",
    "country": "Sweden",
    "countryCode": "se",
    "type": "address",
    "latlng": {
      "lat": 55.5986,
      "lng": 12.9664
    },
    "postcode": "200 01",
    "highlight": {
      "name": "<em>Adolf</em> <em>Fredriksgatan</em> <em>7</em>",
      "city": "<em>Malmö</em>",
      "administrative": "<em>Skåne</em> <em>län</em>",
      "country": "<em>Sweden</em>",
      "suburb": "Fridhem"
    },
    "value": "Adolf Fredriksgatan 7, Malmö, Skåne län, Sweden"
  }
}

Should return;

{
  "query": "Adolf Fredriksgatan 7, Malmö, Skåne län, Sweden",
  "suggestion": {
    "name": "Adolf Fredriksgatan 7",
    "administrative": "Skåne län",
    "city": "Malmö",
    "suburb": "Fridhem",
    "country": "Sweden",
    "countryCode": "se",
    "type": "address",
    "latlng": {
      "lat": 55.5986,
      "lng": 12.9664
    },
    "postcode": "217 74",
    "highlight": {
      "name": "<em>Adolf</em> <em>Fredriksgatan</em> <em>7</em>",
      "city": "<em>Malmö</em>",
      "administrative": "<em>Skåne</em> <em>län</em>",
      "country": "<em>Sweden</em>",
      "suburb": "Fridhem"
    },
    "value": "Adolf Fredriksgatan 7, Malmö, Skåne län, Sweden"
  }
}

Query 3: Eilert Sundts gate 31, Oslo, Oslo, Norway

Response (Wrong postal code, possibly suburb too);

{
  "query": "Eilert Sundts gate 31",
  "suggestion": {
    "name": "Eilert Sundts gate 31",
    "administrative": "Oslo",
    "city": "Oslo",
    "suburb": "Briskeby",
    "country": "Norway",
    "countryCode": "no",
    "type": "address",
    "latlng": {
      "lat": 59.9219,
      "lng": 10.7182
    },
    "postcode": "0001",
    "highlight": {
      "name": "<em>Eilert</em> <em>Sundts</em> <em>gate</em> <em>31</em>",
      "city": "Oslo",
      "administrative": "Oslo",
      "country": "Norway",
      "suburb": "Briskeby"
    },
    "value": "Eilert Sundts gate 31, Oslo, Oslo, Norway"
  }
}

Should return;

{
  "query": "Eilert Sundts gate 31",
  "suggestion": {
    "name": "Eilert Sundts gate 31",
    "administrative": "Oslo",
    "city": "Oslo",
    "suburb": "Briskeby",
    "country": "Norway",
    "countryCode": "no",
    "type": "address",
    "latlng": {
      "lat": 59.9219,
      "lng": 10.7182
    },
    "postcode": "0259",
    "highlight": {
      "name": "<em>Eilert</em> <em>Sundts</em> <em>gate</em> <em>31</em>",
      "city": "Oslo",
      "administrative": "Oslo",
      "country": "Norway",
      "suburb": "Briskeby"
    },
    "value": "Eilert Sundts gate 31, Oslo, Oslo, Norway"
  }
}

Query; 17 Hamilton Road, London Borough of Ealing, England, United Kingdom

Returns (Wrong postal code);

{
  "query": "17 Hamilton Rd, Ealing",
  "suggestion": {
    "name": "17 Hamilton Road",
    "administrative": "England",
    "city": "London Borough of Ealing",
    "suburb": "Acton",
    "country": "United Kingdom",
    "countryCode": "gb",
    "type": "address",
    "latlng": {
      "lat": 51.514,
      "lng": -0.298427
    },
    "postcode": "UB18",
    "highlight": {
      "name": "<em>17</em> <em>Hamilton</em> <em>Road</em>",
      "city": "London Borough of <em>Ealing</em>",
      "administrative": "England",
      "country": "United Kingdom",
      "suburb": "Acton"
    },
    "value": "17 Hamilton Road, London Borough of Ealing, England, United Kingdom"
  }
}

Should return;

{
  "query": "17 Hamilton Rd, Ealing",
  "suggestion": {
    "name": "17 Hamilton Road",
    "administrative": "England",
    "city": "London Borough of Ealing",
    "suburb": "Acton",
    "country": "United Kingdom",
    "countryCode": "gb",
    "type": "address",
    "latlng": {
      "lat": 51.514,
      "lng": -0.298427
    },
    "postcode": "W5" or "W5 2EG",
    "highlight": {
      "name": "<em>17</em> <em>Hamilton</em> <em>Road</em>",
      "city": "London Borough of <em>Ealing</em>",
      "administrative": "England",
      "country": "United Kingdom",
      "suburb": "Acton"
    },
    "value": "17 Hamilton Road, London Borough of Ealing, England, United Kingdom"
  }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
stephan-vcommented, Oct 4, 2019

@ok200paul This is not about updating the info on openstreetmap because whenever I put in an address there I actually get the proper postcode, and I have tried for a lot of postcodes. There seems to be a discrepancy between whatever openstreetmap has and Algolia places right now.

3reactions
ok200paulcommented, Feb 8, 2019

These type of issues should probably be closed, pointing folks to join https://www.openstreetmap.org for them to update the info there. I’ve created an update handling my postcode issues; OSM is really nice to use and create updates on, we should all be contributing if we want to use Algolia places!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working out the Real Impact of Poor Postal Address Data Quality
Poor postal address data quality means inaccurate, incomplete, misleading, or outdated addresses. These are unverified records that cause ...
Read more >
Accuracy of city postal code coordinates as a proxy for ...
We conclude that postal code locations are a reasonably accurate proxy for address location. However, there may be research questions for which ...
Read more >
What happens if the postal code is wrong but the rest ... - Quora
If the address includes the correct street name and number as well as city and state, it will get delivered to the correct...
Read more >
The Trouble with ZIP Codes: Solutions for Data Analysis and ...
ZIP Codes are commonly used for summarizing address data, ... codes that have leading zeros get truncated, and the code becomes incorrect.
Read more >
The zip code for my address is wrong, how can I report this?
You can recommend changes to zip codes or addresses for businesses or gov't buildings so if one of those is also incorrect then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found