This repository was archived by the owner on Nov 8, 2017. It is now read-only.

Description
fillDetails: function(result){
"result" object doesn't have "street_address" in "address_components", it is set as a separate property of result - "name".
If you just typed in search term and submitted, "name" is being returned. If you click "find" again, "name" is not being returned.
I made a quick "fix" to replace "street_address", on line 338 I added following:
street_addr: result.formatted_address.split(',')[0],
So lines 335-339 look like this:
// Add infos about the address and geometry.
$.extend(data, {
formatted_address: result.formatted_address,
street_addr: result.formatted_address.split(',')[0],
location_type: geometry.location_type || "PLACES",
And added "street_addr" on line 65:
"formatted_address street_addr location_type bounds").split(" ");