LukePrior / nbn-upgrade-map

Interactive map showing premises eligible for the NBN FTTP upgrade program.
https://lukeprior.github.io/nbn-upgrade-map/
MIT License
100 stars 11 forks source link

Be more selective when selecting "suggestions" from NBN API #186

Open lyricnz opened 11 months ago

lyricnz commented 11 months ago

As noted in https://github.com/LukePrior/nbn-upgrade-map/issues/179 - when we ask NBN for details about an address, sometimes it comes back with "suggestions", which may or may-not match the intended address. Right now, we just pick the first one, but we need a method for filtering the list of suggestions, or scoring them and picking the best.

See https://user-images.githubusercontent.com/122371/252541097-6befed11-e1e5-4cf0-8239-225d29e32731.png

lyricnz commented 11 months ago

This is also related to https://github.com/LukePrior/nbn-upgrade-map/issues/180 "Many many duplicate locId in output geojson"