ngAutocomplete icon indicating copy to clipboard operation
ngAutocomplete copied to clipboard

how to get the lat lng in the result

Open Aman-US-Punjabi opened this issue 10 years ago • 6 comments

I want to get the lat and lng in the result, I dont want to use details as i know about that option.

Aman-US-Punjabi avatar Dec 13 '14 22:12 Aman-US-Punjabi

{{details.geometry.location}} returns latitude and longitude.

ritesh-nitw avatar Dec 29 '14 16:12 ritesh-nitw

How I can get the postal code?

mgonzalez10 avatar Apr 06 '15 16:04 mgonzalez10

I can use this to get the latlng object in the view, but not the controller. Does anyone know how I can get it in the controller? Or pass it from the view to the controller?

ghost avatar Aug 06 '15 11:08 ghost

make details=any_controller_scope_variable . Then get all details from it ex. {{any_controller_scope_variable.geometry.location.lat()}}

madianas avatar Sep 11 '15 21:09 madianas

that is what I did and it is not working at all...I want to save this number into a variable in the controller.

xiaofanwu avatar Mar 13 '16 09:03 xiaofanwu

karlpower6, did you ever figured it out?

xiaofanwu avatar Mar 13 '16 09:03 xiaofanwu