Skip to content

Street polygon duplicate #244

@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 😇

pelias.github.io/compare


Here's what I got 🙀

{
    "geocoding": ⊖{
        "version": "0.2",
        "attribution": "http://api.yourpelias.com/attribution",
        "query": ⊖{
            "enableDebug": false,
            "text": "dalagatan",
            "parser": "pelias",
            "parsed_text": ⊖{
                "subject": "dalagatan"
            },
            "size": 10,
            "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": 1583925036740
    },
    "type": "FeatureCollection",
    "features": ⊖[
       ⊖{
            "type": "Feature",
            "geometry": ⊖{
                "type": "Point",
                "coordinates": ⊖[
                    18.039446,
                    59.347814
                ]
            },
            "properties": ⊖{
                "id": "polyline:480661",
                "gid": "openstreetmap:street:polyline:480661",
                "layer": "street",
                "source": "openstreetmap",
                "source_id": "polyline:480661",
                "name": "Dalagatan",
                "street": "Dalagatan",
                "distance": 11.579,
                "accuracy": "centroid",
                "country": "Sweden",
                "country_gid": ⊖{
                    "0": "whosonfirst:country:85633789",
                },
                "country_a": "SWE",
                "region": "Stockholm",
                "region_gid": ⊖{
                    "0": "whosonfirst:region:85688429",
                },
                "region_a": "ST",
                "county": "Stockholm",
                "county_gid": ⊖{
                    "0": "whosonfirst:county:1159303035",
                },
                "localadmin": "Vantor",
                "localadmin_gid": ⊖{
                    "0": "whosonfirst:localadmin:1125362217",
                },
                "locality": "Stockholm",
                "locality_gid": ⊖{
                    "0": "whosonfirst:locality:101752307",
                },
                "neighbourhood": "Vasastaden",
                "neighbourhood_gid": ⊖{
                    "0": "whosonfirst:neighbourhood:85902593",
                },
                "continent": "Europe",
                "continent_gid": ⊖{
                    "0": "whosonfirst:continent:102191581",
                },
                "label": "Dalagatan, Stockholm, Sweden"
            },
            "bbox": ⊖[
                18.039043,
                59.347412,
                18.03985,
                59.348217
            ]
        },
       ⊖{
            "type": "Feature",
            "geometry": ⊖{
                "type": "Point",
                "coordinates": ⊖[
                    18.041739,
                    59.34523
                ]
            },
            "properties": ⊖{
                "id": "polyline:480353",
                "gid": "openstreetmap:street:polyline:480353",
                "layer": "street",
                "source": "openstreetmap",
                "source_id": "polyline:480353",
                "name": "Dalagatan",
                "street": "Dalagatan",
                "distance": 11.894,
                "accuracy": "centroid",
                "country": "Sweden",
                "country_gid": ⊖{
                    "0": "whosonfirst:country:85633789",
                },
                "country_a": "SWE",
                "region": "Stockholm",
                "region_gid": ⊖{
                    "0": "whosonfirst:region:85688429",
                },
                "region_a": "ST",
                "county": "Stockholm",
                "county_gid": ⊖{
                    "0": "whosonfirst:county:1159303035",
                },
                "localadmin": "Vantor",
                "localadmin_gid": ⊖{
                    "0": "whosonfirst:localadmin:1125362217",
                },
                "locality": "Stockholm",
                "locality_gid": ⊖{
                    "0": "whosonfirst:locality:101752307",
                },
                "neighbourhood": "Vasastaden",
                "neighbourhood_gid": ⊖{
                    "0": "whosonfirst:neighbourhood:85905583",
                },
                "continent": "Europe",
                "continent_gid": ⊖{
                    "0": "whosonfirst:continent:102191581",
                },
                "label": "Dalagatan, Stockholm, Sweden"
            },
            "bbox": ⊖[
                18.041603,
                59.345142,
                18.04191,
                59.345375
            ]
        }
    ],
    "bbox": ⊖[
        18.039043,
        59.345142,
        18.04191,
        59.348217
    ]
}

Here's what I was expecting ✨

I was expecting the Dalagatan street to be merged by polylines into a single polygon.


Here's what I think could be improved 🏆

Is this a polylines issue? Or there is some problem with the underlying OpenStreetMap data?

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