Skip to content

Incorrect locality interpolation #287

@ambrusadrianz

Description

@ambrusadrianz

Hey team!

I was using your awesome geocoding engine when I noticed something interesting.
Let me tell you more about it.


Here's what I did 😇

https://pelias.github.io/compare/#/v1/autocomplete%3Flayers=street&focus.point.lat=59.4391&focus.point.lon=17.9415&text=granva&size=1


Here's what I got 🙀

{
  "geocoding": {
    "version": "0.2",
    "attribution": "http://api.yourpelias.com/attribution",
    "query": {
      "text": "granva",
      "parser": "pelias",
      "parsed_text": {
        "subject": "granva"
      },
      "size": 1,
      "layers": [
        "street"
      ],
      "private": false,
      "focus.point.lat": 59.4391,
      "focus.point.lon": 17.9415,
      "lang": {
        "name": "English",
        "iso6391": "en",
        "iso6393": "eng",
        "defaulted": false
      }
    },
    "engine": {
      "name": "Pelias",
      "author": "Mapzen",
      "version": "1.0"
    },
    "timestamp": 1582112887879
  },
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
          17.950292,
          59.413714
        ]
      },
      "properties": {
        "id": "polyline:481559",
        "gid": "openstreetmap:street:polyline:481559",
        "layer": "street",
        "source": "openstreetmap",
        "source_id": "polyline:481559",
        "name": "Granvägen",
        "street": "Granvägen",
        "distance": 2.869,
        "accuracy": "centroid",
        "country": "Sweden",
        "country_gid": "whosonfirst:country:85633789",
        "country_a": "SWE",
        "region": "Stockholm",
        "region_gid": "whosonfirst:region:85688429",
        "region_a": "ST",
        "county": "Stockholm",
        "county_gid": "whosonfirst:county:1159303035",
        "localadmin": "Vantor",
        "localadmin_gid": "whosonfirst:localadmin:1125362217",
        "locality": "Stockholm",
        "locality_gid": "whosonfirst:locality:101752307",
        "neighbourhood": "Kista",
        "neighbourhood_gid": "whosonfirst:neighbourhood:85902231",
        "continent": "Europe",
        "continent_gid": "whosonfirst:continent:102191581",
        "label": "Granvägen, Stockholm, Sweden"
      },
      "bbox": [
        17.949897,
        59.412975,
        17.951959,
        59.414611
      ]
    }
  ],
  "bbox": [
    17.949897,
    59.412975,
    17.951959,
    59.414611
  ]
}

Here's what I was expecting ✨

Something seems to be off with the lookup. This street should be in Sollentuna locality (kommun) not in Stockholm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions