[Feature Suggest] Parsing USA/Canada addresses (and maybe others)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 598
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
I'm noticing a pattern of things that don't make the map where most of my content does as expected.
This first thingie is more of a bug than an enhancement but it's related. I was having fun populating the location search textbox for driving directions by typing in names of my contacts and discovered some that were not found and were not rendered on the map. My contacts who live in apartments were omitted from both. Standardization for the US Postal System is to have the pound sign stuck to the apartment number immediately after the building street address without a comma separator. e.g. 145748 Main St #B14, Big City, ST(ate) ZIPCODE
Apparently, the thing that renders them is choking on the pound sign and discarding the item.
The main point of this issue is that the USA & Canada (and maybe Mexico and the UK), all that is needed to geolocate a place on the map is the street number street name and ZipCode. It can just be the first 5 digits of the USA zip instead of the newer +4 digits, for Canada you need all 6 characters. The reason this is true is that municipalities work with the post office when naming streets and numbering them. A zip code's first 5 digits are identifying a post office building. They sort on street address at that level to load trucks. They make sure that if two streets in their delivery territory have the same name that they don't have overlapping house/building numbers. Google maps has this working for them. So if you are pulling a USA address into the search thingie, you only need the field for the street address (with any apartment stripped off) and the zip code field.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the location search textbox and the path that renders contact addresses on the map. Review how apartment markers and street address plus ZIP or postal code fields are sent for geolocation; done means USA and Canadian addresses are found and rendered without apartment information breaking the lookup.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend, search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100