{"issue":{"state":"open","created_at":"2011-12-13T14:48:22Z","updated_at":"2011-12-13T23:15:51Z","user":{"gravatar_id":"d955604b76512f6e8addd132c12f8521","id":1260462,"url":"https://api.github.com/users/ajacquot","avatar_url":"https://secure.gravatar.com/avatar/d955604b76512f6e8addd132c12f8521?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ajacquot"},"comments":2,"body":"First off thank for this piece of code, it works great!\r\n\r\nHere is what I am trying to do: when you pick a location in the auto-complete drop down menu, it fill the input field with selected value, for example, if I am trying to find the Empire State Building in new York, the selected value will end up being: \"Empire State Bldg, New York, NY 10001, USA\".\r\n\r\nI would like instead to have \"Empire State Bldg\" :i.e. address_components[0].long_name\r\n\r\nIn your example, I tried to add something like this in _focusAddress: \r\n    this.addresspicker_map.val(address.address_components[0].long_name);\r\n\r\nThis works fine to extract address_components[0].long_name to another #id, but does not work to extract it to the main input field.\r\n\r\nIf this is confusing, here is a site where what I am trying to achieve has been implemented:\r\nhttp://traveltriangle.com/#search_trips\r\n\r\nAny advice will be appreciated.\r\n\r\nThanks.\r\n","assignee":null,"labels":[],"id":2537252,"number":6,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"How to change the returned value of ","html_url":"https://github.com/sgruhier/jquery-addresspicker/issues/6","closed_at":null,"url":"https://api.github.com/repos/sgruhier/jquery-addresspicker/issues/6","milestone":null},"action":"created","comment":{"created_at":"2011-12-13T23:15:51Z","updated_at":"2011-12-13T23:15:51Z","user":{"gravatar_id":"d955604b76512f6e8addd132c12f8521","id":1260462,"url":"https://api.github.com/users/ajacquot","avatar_url":"https://secure.gravatar.com/avatar/d955604b76512f6e8addd132c12f8521?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ajacquot"},"body":"Hey, thanks for taking a look! \r\n\r\nThat does not work, because it populates the drop down with address_components[0].long_name... so \"Paris, TX\" and \"Paris, France\" are both listed as \"Paris\" in the drop down... \r\n\r\nI would like the drop down to be populated with formatted_address (as you have by default), but once one of the drop down options is selected, the associated text input field is populated with address_components[0].long_name (in the example above, just \"Paris\") \r\n","id":3132506,"url":"https://api.github.com/repos/sgruhier/jquery-addresspicker/issues/comments/3132506"}}