我按邮政编码搜索 http://autocomplete.geocoder.api.here.com/6.2/suggest.json?app_id=API_ID&app_code=APP_CODE&query= 3084&country=AUS
预期结果将是所有郊区(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"
}
]
}
下面的结果(来自我本地弹性搜索中的地址器安装,而不是来自 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"
}
}
]