Skip to content

Incorrect revers geocode response for long road segments #864

Closed as duplicate of#357
@mrosendorff

Description

@mrosendorff

When a query is made for reverse geocoding on a long road segment it resolves to an incorrect road, not sure if its only looking at the endpoints of the road segment or something like that.

Current behavior

For the following request

https://photon.komoot.io/reverse?lat=-26.65970059172413&lon=27.730073991636242&radius=3

If you look at this latitude and longitude from the above it is exactly on the highway called the N1

Image

However the result returned from the query is

{
    "features": [
        {
            "geometry": {
                "coordinates": [
                    27.7368052,
                    -26.6829766
                ],
                "type": "Point"
            },
            "type": "Feature",
            "properties": {
                "osm_id": 215455188,
                "extent": [
                    27.732934,
                    -26.6828855,
                    27.7387441,
                    -26.6870423
                ],
                "country": "South Africa",
                "city": "Emfuleni Local Municipality",
                "countrycode": "ZA",
                "county": "Sedibeng District Municipality",
                "type": "street",
                "osm_type": "W",
                "osm_key": "highway",
                "district": "Emfuleni Ward 25",
                "osm_value": "residential",
                "name": "Hugo Road",
                "state": "Gauteng"
            }
        }
    ],
    "type": "FeatureCollection"
}

Which is Hugo road, over 2 km away from the query point

Image

Please let me know if I can give any further details

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