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

Is there a way to know the score of the result returned by photon? #392

Closed
ifle opened this issue Mar 16, 2019 · 1 comment
Closed

Is there a way to know the score of the result returned by photon? #392

ifle opened this issue Mar 16, 2019 · 1 comment

Comments

@ifle
Copy link

ifle commented Mar 16, 2019

Is there a way to know the score of the result returned by photon, like partial match in google geocoder?
In our country has not enough data for full geocoding by OSM and we will to switch to google.
The problem that Photon does not return any flag is this result is partial match
F.e
photon.komoot.de/api/?q=asirey zion 10 Rishon LeZion
This partial result is not good enough.
How to tuning or disable the fuzzy search?

{
    "features": [
        {
            "geometry": {
                "coordinates": [
                    34.8289474,
                    31.9508497
                ],
                "type": "Point"
            },
            "type": "Feature",
            "properties": {
                "osm_id": 120497589,
                "osm_type": "W",
                "extent": [
                    34.8287894,
                    31.9514913,
                    34.8291335,
                    31.9503053
                ],
                "country": "Israel",
                "osm_key": "highway",
                "city": "Rishon LeZion",
                "osm_value": "residential",
                "postcode": "NO",
                "name": "Asirey Zion",
                "state": "Center District"
            }
        },
        {
            "geometry": {
                "coordinates": [
                    34.74976990450881,
                    31.9858883
                ],
                "type": "Point"
            },
            "type": "Feature",
            "properties": {
                "osm_id": 130855785,
                "osm_type": "W",
                "extent": [
                    34.7422176,
                    31.9918561,
                    34.7560788,
                    31.9799912
                ],
                "country": "Israel",
                "osm_key": "landuse",
                "city": "Rishon LeZion",
                "osm_value": "construction",
                "postcode": "NO",
                "name": "1000 compound",
                "state": "Center District"
            }
        },
        {
            "geometry": {
                "coordinates": [
                    34.773857401513546,
                    31.98411885
                ],
                "type": "Point"
            },
            "type": "Feature",
            "properties": {
                "osm_id": 369413529,
                "osm_type": "W",
                "extent": [
                    34.7722037,
                    31.9851908,
                    34.7748756,
                    31.982236
                ],
                "country": "Israel",
                "osm_key": "amenity",
                "housenumber": "3",
                "city": "Rishon LeZion",
                "street": "Avnei HaHoshen",
                "osm_value": "school",
                "postcode": "NO",
                "name": "Highschool 10",
                "state": "Center District"
            }
        },
        {
            "geometry": {
                "coordinates": [
                    34.837845,
                    31.958945
                ],
                "type": "Point"
            },
            "type": "Feature",
            "properties": {
                "osm_id": 5210718169,
                "osm_type": "N",
                "country": "Israel",
                "osm_key": "highway",
                "city": "Rishon LeZion",
                "street": "HaLulav",
                "osm_value": "bus_stop",
                "postcode": "NO",
                "name": "Base 108",
                "state": "Center District"
            }
        }
    ],
    "type": "FeatureCollection"
}
@lonvia
Copy link
Collaborator

lonvia commented May 25, 2021

You should use the type property, which was introduced in #473. It allows you to check if the result is only street-level or house-level.

@lonvia lonvia closed this as completed May 25, 2021
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

2 participants