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

No "street_address" in result #25

@DreifGenov

Description

@DreifGenov
    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(" ");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions