ng map - How to get all countries from google map with AngularJS -
how can json list of countries (autocomplet) in select example angularjs (http://ngmap.github.io/)?
a "place autocomplete" request url http following format (output can have values json or xml): https://maps.googleapis.com/maps/api/place/autocomplete/output?parameters
the mandatory parameters are
- input (string text want research)
- key (the app's api key)
you can set location type want (countries in case). example url be:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input={typed_text}&types=countries&key={your_api_key}
you can check detailed google documentation here: https://developers.google.com/places/web-service/autocomplete
Comments
Post a Comment