parser icon indicating copy to clipboard operation
parser copied to clipboard

Parsing Belgium street name

Open gmarti opened this issue 1 year ago • 2 comments

Describe the bug Autocomplete for Ter Waarde 91 or Ter Waarde 91, Ypres, Belgium or Ter Waarde 91, 8900 Ypres, Belgium always fails to return the proper result because pelias parser seems to want Waarde as a locality

       "santizer:text:pelias_parser": [[](https://pelias.github.io/compare/#)
          "0.60 ➜ locality='Waarde', postcode='8900', country='Belgium'",
          "0.57 ➜ postcode='8900', locality='Ypres', country='Belgium'"
        ]

Steps to Reproduce https://pelias.github.io/compare/#/v1/autocomplete?text=Ter+Waarde+91%2C+Ypres%2C+Belgium&debug=1

trying to force address doesn't work either https://pelias.github.io/compare/#/v1/autocomplete?layers=address&text=Ter+Waarde+91%2C+Ypres%2C+Belgium&debug=1

Expected behavior Find this result https://pelias.github.io/compare/#/v1/search?text=Ter+Waarde+91%2C+Ypres%2C+Belgium&debug=1 https://pelias.github.io/compare/#/v1/place?ids=openaddresses%3Aaddress%3Abe%2Fvlg%2Fbosa-region-flanders-nl%3A91ab227c88a0dfad&debug=1

gmarti avatar Nov 01 '24 16:11 gmarti

@missinglink Sorry to bother you, is there anything I can do to help with this ?

Maybe I can have a look at a fix, but I don't understand where and what happens

gmarti avatar Nov 12 '24 09:11 gmarti

You can try the command listed in the Quick Start section of the readme, it outputs detailed parsing information:

https://github.com/pelias/parser?tab=readme-ov-file#quick-start

missinglink avatar Nov 12 '24 10:11 missinglink