google maps - How to get formatted_address and other in ubilabs geocomplete? -


how formatted_address , other in ubilabs geocomplete?

i user ubilabs geocomplete.

https://github.com/ubilabs/geocomplete

http://ubilabs.github.io/geocomplete/docs/

how formatted_address , other.

i lat , lng use code:

$("#geocomplete").bind("geocode:dragged", function(event, latlng){ $("input[name=lat]").val(latlng.lat()); $("input[name=lng]").val(latlng.lng()); $("#reset").show(); }); 

but need:

location location_type formatted_address street_number postal_code locality sublocality country country_short administrative_area_level_1 place_id 

how can ubilabs geocomplete?

i having same problem managed fix bellow code

 $("#geocomplete").bind("geocode:dragged", function(event, latlng){           $("input[name=lat]").val(latlng.lat());           $("input[name=lng]").val(latlng.lng());           $("input[name=formatted_address]").geocomplete("find", latlng.lat() + "," + latlng.lng());           $("#reset").show();         }); 

and place below input ever want display formatted_address

<input name="formatted_address" type="text" value=""> 

its working grate!!!


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -