Open NomeQ opened 7 months ago
Related: What to do if we can't extract all required fields? e.g. missing zip code from plus codes, or other address components not present?
Is the code you quoted in this issue in a branch? I don't see it in nome-dev. https://github.com/full-path/ridesheet/blob/9235b474c7feb7790a5ee04132e065f10b1b5d5e/api_util.js
Oh yes, my mistake. It is in ridenoco-trip-request branch!
OK, I've made a first pass at this. Please look at #105-improve-address-handling.
Address parsing is not resilient—on nome-dev branch.
components[i].type
contains more information about what sort of address component each is. Check that before assigning.