Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing "postal_town" key #180

Open
YonniRouelle opened this issue Sep 19, 2022 · 1 comment
Open

Missing "postal_town" key #180

YonniRouelle opened this issue Sep 19, 2022 · 1 comment

Comments

@YonniRouelle
Copy link

In ADDRESS_COMPONENTS constant, it misses postal_town: 'long_name' key / value to support address that haven't locality key.
For example, this is the value returns by the method autocomplete.getPlace() for an address in London

"address_components": [
  {
    "long_name": "42",
    "short_name": "42",
    "types": [
      "street_number"
    ]
  },
  {
    "long_name": "Newington Causeway",
    "short_name": "Newington Causeway",
    "types": [
      "route"
    ]
  },
  {
    "long_name": "London",
    "short_name": "London",
    "types": [
      "postal_town"
    ]
  },
  {
    "long_name": "Greater London",
    "short_name": "Greater London",
    "types": [
      "administrative_area_level_2",
      "political"
    ]
  },
  {
    "long_name": "England",
    "short_name": "England",
    "types": [
      "administrative_area_level_1",
      "political"
    ]
  },
  {
    "long_name": "United Kingdom",
    "short_name": "GB",
    "types": [
      "country",
      "political"
    ]
  },
  {
    "long_name": "SE1 6DR",
    "short_name": "SE1 6DR",
    "types": [
      "postal_code"
    ]
  }
]
@TomasPodivinskyCoding
Copy link

It also misses the premise type, which makes it borderline useless for autocompletion in the Czech republic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants