City-of-Bloomington / open311-nodejs

A citizen facing Open311 client written in Node
1 stars 2 forks source link

Google Map does not recognize subunits #66

Open inghamn opened 4 years ago

inghamn commented 4 years ago

When trying to test submitting a problem at a subunit, I cannot get the Google map to find the address. It would be nice if users could provide their subunit information, if relevant.

135 W 4th Unit 2

The JS console shows an error: TypeError: t.geometry is undefined.

laurahaley commented 4 years ago

The google maps interface will let you add a unit in your address search - but it changes whatever the type you enter, apt, unit, etc, to use the unknown type #, as in 321 E 14th #A2.  No matter what unit you enter, it ignores the unit in the mapping and will only pin the base address. It will label the pin with you unit included. This isn't a big deal for most multi-unit addresses, but there are some large complexes with multiple buildings.

Perhaps you can do the same thing. Let a user enter the unit and track that, but send just the base address to the map search.