2

我第一次看到这个并且REDACTED_US_STATE在谷歌中搜索什么都没有。我使用android-PlacesAutocompleteTextView女巫是与 Google Maps Places API 交互的 AutocompleteTextView。它提供位置结果并将选定的结果缓存在历史文件中以供以后使用。

是什么REDACTED_US_STATE意思?

显然马萨诸塞州已被 REDACTED_US_STATE 取代

按地点 ID 进行反向地理编码不会给出此输出。现在我无法使用 Place Autocomplete 重新创建相同的结果。

Placeid 是:

EjE0Ni0zMiBNYXNzYWNodXNldHRzIEF2ZSwgQ2FtYnJpZGdlLCBNQSAwMjEzOSwgVVNB

address_component 是:

    [
   {
      "long_name": "46-32",
      "short_name": "46-32",
      "types": "[STREET_NUMBER]"
   },
   {
      "long_name": "[REDACTED_US_STATE] Avenue",
      "short_name": "[REDACTED_US_STATE] Ave",
      "types": "[ROUTE]"
   },
   {
      "long_name": "Area 2/MIT",
      "short_name": "Area 2/MIT",
      "types": "[NEIGHBORHOOD, POLITICAL]"
   },
   {
      "long_name": "Cambridge",
      "short_name": "Cambridge",
      "types": "[LOCALITY, POLITICAL]"
   },
   {
      "long_name": "Middlesex County",
      "short_name": "Middlesex County",
      "types": "[ADMINISTRATIVE_AREA_LEVEL_2, POLITICAL]"
   },
   {
      "long_name": "[REDACTED_US_STATE]",
      "short_name": "MA",
      "types": "[ADMINISTRATIVE_AREA_LEVEL_1, POLITICAL]"
   },
   {
      "long_name": "United States",
      "short_name": "US",
      "types": "[COUNTRY, POLITICAL]"
   },
   {
      "long_name": "02139",
      "short_name": "02139",
      "types": "[POSTAL_CODE]"
   }
]

formated_address 为:

46-32 [REDACTED_US_STATE] Ave, Cambridge, MA 02139, USA

4

0 回答 0