-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address and AddressComponents #9
Comments
The Google Maps API returns an array of
I'm going to add a new field like this one: type AddressComponent struct {
LongName string
ShortName string
Types []string
}
AddressComponents []AdressComponent |
interesting. Perhaps we can normalize this into a struct something like... type Place struct {
Name string
Address Address
}
Address struct {
Street string
City string
State string
Country string
} doing a quick search I even found someone with a similar story.. http://brizzled.clapper.org/blog/2012/02/14/simple-address-standardization/ |
And nothing has changed much since then, the Google Maps API still uses the same format. If we stick to the values you are suggesting it won't be that difficult, we can try to copy the initial mapping from that article and keep making adjustments when necessary. |
Yes please
|
I think it would be better if we're explicit on the data structure of a "place", as in lets make the components actual fields.
The text was updated successfully, but these errors were encountered: