Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse geocoding is buggy #339

Closed
nicolaspernoud opened this issue Jun 18, 2018 · 2 comments
Closed

Reverse geocoding is buggy #339

nicolaspernoud opened this issue Jun 18, 2018 · 2 comments

Comments

@nicolaspernoud
Copy link

Reverse geocoding on http://photon.komoot.de/reverse?lon=4.862153536922563&lat=45.77042383487134

Gives :

{
    "features": [
        {
            "geometry": {
                "coordinates": [
                    4.8561538,
                    45.770519
                ],
                "type": "Point"
            },
            "type": "Feature",
            "properties": {
                "osm_id": 2814036943,
                "osm_type": "N",
                "country": "France",
                "osm_key": "amenity",
                "city": "Lyon",
                "street": "Rue Tronchet",
                "osm_value": "dentist",
                "postcode": "69006",
                "name": "Centre médico-dentaire",
                "state": "Auvergne-Rhône-Alpes"
            }
        }
    ],
    "type": "FeatureCollection"
}

This is incorrect, the street is not even close !

The correct result is achieved with nominatim : https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=45.77042383487134&lon=4.862153536922563

@pbrugger
Copy link

In new version of photon distance_sort is set to false by default. If you try http://photon.komoot.de/reverse?lon=4.862153536922563&lat=45.77042383487134&distance_sort=true you will get the correct result. I have reported this issue as well and hope there will be a way to change distance_sort default parameter for reverse search. --> #328

@nicolaspernoud
Copy link
Author

Thanks ! I'll give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants