Skip to content
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

Google Search API #94

Closed
ibnubay opened this issue Nov 24, 2016 · 6 comments
Closed

Google Search API #94

ibnubay opened this issue Nov 24, 2016 · 6 comments

Comments

@ibnubay
Copy link

ibnubay commented Nov 24, 2016

How i can get/access value using Google Search API:

  • postal code on address_components?

thanks

@jonataswalker
Copy link
Collaborator

You can access the original API response with:

geocoder.on('addresschosen', function(evt){
    console.info(evt.address.original);
  });

@ibnubay
Copy link
Author

ibnubay commented Nov 24, 2016

How to get value from "types" : [ "postal_code"?:
"address_components" : [
{
"long_name" : "94043",
"short_name" : "94043",
"types" : [ "postal_code" ]
}
],
I try evt.address.original.postal_code, but undefined

Thanks

@ibnubay
Copy link
Author

ibnubay commented Nov 24, 2016

Sorry double Post...
I found evt.address.details.postcode.

@jonataswalker
Copy link
Collaborator

@ibnbay99 Can we close this?

@ibnubay
Copy link
Author

ibnubay commented Nov 26, 2016

@jonataswalker, sure.
Thank you....

@jonataswalker
Copy link
Collaborator

@ibnbay99 Please see #143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants