Skip to content

[Feature Suggest] Parsing USA/Canada addresses (and maybe others) #136

@WNYmathGuy

Description

@WNYmathGuy

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions