Javascript 如何通过邮政编码到达郊区?

Javascript 如何通过邮政编码到达郊区?,javascript,here-api,here-autocomplete,Javascript,Here Api,Here Autocomplete,我按邮政编码搜索 3084&国家=澳大利亚 预期结果将是所有郊区(Viewbank、Rosanna、Heidelberg…)的邮政编码均为3084,但结果通常是墨尔本,这些建议无助于: { "suggestions": [ { "label": "Australia, VIC, 3084, Melbourne", "language": "en", "countryCode": "AUS",

我按邮政编码搜索 3084&国家=澳大利亚

预期结果将是所有郊区(Viewbank、Rosanna、Heidelberg…)的邮政编码均为3084,但结果通常是墨尔本,这些建议无助于:

{
    "suggestions": [
        {
            "label": "Australia, VIC, 3084, Melbourne",
            "language": "en",
            "countryCode": "AUS",
            "locationId": "NT_XPjzlLh3Twzu3wr29Eo-cD",
            "address": {
                "country": "Australia",
                "state": "VIC",
                "city": "Melbourne",
                "postalCode": "3084"
            },
            "matchLevel": "postalCode"
        }
    ]
}
以下结果(来自我的本地elasticsearch中的addresser install,而非hereapi)是预期结果:

"suggestions":[  
         {  
            "source":{  
               "postcode":"3084",
            },
            "type":"postcode",
            "display":{  
               "text":"3084"
            }
         },
         {  
            "source":{  
               "postcode":"3084",
               "state":"VIC",
               "name":"Viewbank"
            },
            "type":"suburb",
            "display":{  
               "text":"Viewbank, VIC 3084"
            }
         },
         {  
            "source":{  
               "postcode":"3084",
               "state":"VIC",
               "name":"Heidelberg"
            },
            "type":"suburb",
            "display":{  
               "text":"Heidelberg, VIC 3084"
            }
         },
         {  
            "source":{  
               "postcode":"3084",
               "state":"VIC",
               "name":"Rosanna"
            },
            "type":"suburb",
            "display":{  
               "text":"Rosanna, VIC 3084"
            }
         },
         {  
            "source":{  
               "postcode":"3084",
               "state":"VIC",
               "name":"Eaglemont"
            },
            "type":"suburb",
            "display":{  
               "text":"Eaglemont, VIC 3084"
            }
         }
      ]

请使用附加参数尝试自动完成:

请与usI分享您的尝试我更改了我的问题,使用here api添加了第一次尝试,使用addresser(另一个提供商)添加了第二次尝试。您是否可以这样尝试,并查看结果是否符合您的预期: