pelias / api

HTTP API for Pelias Geocoder
http://pelias.io
MIT License
220 stars 163 forks source link

interpretation of libpostal 'island' label #1250

Open missinglink opened 5 years ago

missinglink commented 5 years ago

http://pelias.github.io/compare/#/v1/autocomplete%3Ftext=Gabriola%20Island

1) Gabriola Island, BC, Canada
2) Gabriola Island 5, BC, Canada
3) Gabriola Island RCMP, BC, Canada
4) Gabriola Island Indian Reserve 5, BC, Canada

http://pelias.github.io/compare/#/v1/search%3Ftext=Gabriola%20Island

1) Iceland
2) Island County, WA, USA
3) Island, KY, USA
4) Island, France
5) Island, Worcester, MA, USA
missinglink commented 5 years ago

most likely this:

      "parsed_text": {
        "island": "gabriola island"
      }
orangejulius commented 5 years ago

Interesting. We handle at least one case of the island parameter correctly with libpostal, for Maui. I thought we essentially convert island into a locality/localadmin/county search, but I can't find the code to do it right now