Skip to content

Wrong service request or missing information in README? #15

@WuglyakBolgoink

Description

@WuglyakBolgoink

Hallo @kolkov

if I use jQuery example, then this work fine!

$("#address").suggestions({
  // Замените на свой API-ключ
  token: "7fd18aaabd7d53ffa4846e4521c1f736c13490eb",
  type: "ADDRESS",
  geoLocation: false,
  constraints: {
    locations: { country: "*" },
    label: ""
  }
});

if I use same config with angular component I got only russian addresses, because...

request in jQuery:

{
  "locations": [
    {
      "country": "*"
    }
  ],
  "restrict_value": false,
  "from_bound": {
    "value": "country"
  },
  "to_bound": {
    "value": "country"
  },
  "query": "ber",
  "count": 5,
  "language": "en"
}

request in ngx-dadata component:

{
  "query": "ber"
}

why we have this different?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions