DenisCarriere / geocoder

:earth_asia: Python Geocoder
http://geocoder.readthedocs.org
MIT License
1.62k stars 286 forks source link

Quality/type tags in results by reverse geocoding #456

Open anurupsatyarth opened 1 year ago

anurupsatyarth commented 1 year ago

Hi,

I am working on a project to identify the location type using reverse geocoding and I am using the below code to do that:

g = geocoder.osm([x.lat,x.lng], method='reverse').json

And i am getting the result, which is mentioned below, I am trying to find more information regarding the "quality" and "type" tags, also, i want to know what does "yes" means in this context. Any help is much appreciated.

{
  "encoding": "utf-8",
  "status_code": 200,
  "place_id": "169621055",
  "county": "Suffolk County",
  "street": "Wall Street",
  "osm_id": "470231498",
  "lng": -73.42776365,
  "quality": "yes",
  "confidence": 10,
  "type": "yes",
  "state": "New York",
  "location": "11 Wall Street, New York",
  "provider": "osm",
  "housenumber": "11",
  "accuracy": 0.511,
  "status": "OK",
  "importance": 0.511,
  "bbox": {
    "northeast": [
      40.8716548,
      -73.4275981
    ],
    "southwest": [
      40.8715761,
      -73.4279292
    ]
  },
  "address": "11, Wall Street, Halesite, Suffolk County, New York, 11743, United States of America",
  "lat": 40.87161545,
  "postal": "11743",
  "ok": true,
  "country": "United States of America",
  "region": "New York",
  "osm_type": "way",
  "place_rank": "30"
}