vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

geocoder

Open thibaultvanc opened this issue 8 years ago • 3 comments

hello, i don't see in the doc where you can geocode an address ?* thanks for help

thibaultvanc avatar May 28 '16 23:05 thibaultvanc

Hello,

Geocode is a totally different service that google maps.

Vue.js is a front-end framework meaning it's job is to display things. Since geocoding is not something you see but more data retrieval it does not make sense to include it here.

Moreover I don't see how we could improve usability of geocoding using Vue.js. If you have any idea please let us know.

GuillaumeLeclerc avatar May 29 '16 14:05 GuillaumeLeclerc

Geocoding is a part of the Google Maps API, as stated in the docs. Is there a way to directly access the API when using Vue Google Maps?

curtisblackwell avatar Jun 19 '16 21:06 curtisblackwell

@curtisblackwell I usually use the JSON API for geocoding purposes but of course you can access the api.

google is available on the global scope as soon as the loaded promise is resolved. After that you can use google.geocode

GuillaumeLeclerc avatar Jun 20 '16 06:06 GuillaumeLeclerc