etodanik / ion-google-place

Ionic directive for a location dropdown that utilizes google maps
MIT License
251 stars 201 forks source link

Thank you and a question regarding get my current location #74

Open xiaofanwu opened 8 years ago

xiaofanwu commented 8 years ago

Thank you so much for creating this!! It saved me a lot of time! I was wondering if I want to only get the user's current location, how can I do that? For example, I just want to the user press a button that says get my current location and the the current address will be displayed

RamyRais commented 8 years ago

Hi @xiaofanwu actually if you have the last commit you will get the functionality get current location.

hfcipriano commented 8 years ago

i can't get the coordinates. How to get them?

xiaofanwu commented 8 years ago

@hfcipriano I used rootscope in ion-google-place.js, and then got them using scope. I just couldn't figure it out. This way, it works, but not a smart way.