Global Type Ahead
Global Type Ahead は、入力の途中から住所を自動的に予測し、入力に基づく候補を直ちに返します。提示されたリストから適切な候補を選び出すことができます。
Global Type Ahead は Global Addressing モジュールの一部です。
リソース URL
JSON エンドポイント:
http://server:port/rest/GlobalTypeAheadValidation/result.json
JSON 応答の例
次の例では、JSON 応答を要求します。
http://server:8080/rest/GlobalTypeAhead/result.json?Data.AddressLine1=Victori
この要求から次のような JSON が返されます。
{
"output_port": [
{
"FirmName": "The Victoria",
"AddressLine1": "West Street",
"LastLine": "DUNSTABLE, LU6 1ST",
"FormattedAddress": "The Victoria, 69, West Street, DUNSTABLE,
LU6 1ST",
"PostalCode": "LU6 1ST",
"City": "DUNSTABLE",
"Country": "UNITED KINGDOM",
"Type": "2",
"Ranges": [],
"user_fields": []
},
{
"FirmName": "The Victoria",
"AddressLine1": "Wilmslow Road",
"LastLine": "MANCHESTER, M20 3BW",
"FormattedAddress": "The Victoria, 438, Wilmslow Road, MANCHESTER,
M20 3BW",
"PostalCode": "M20 3BW",
"City": "MANCHESTER",
"Country": "UNITED KINGDOM",
"Type": "2",
"Ranges": [],
"user_fields": []
},
{
"FirmName": "The Victoria, 42-43",
"AddressLine1": "Promenade",
"LastLine": "SOUTHPORT, PR9 0DS",
"FormattedAddress": "The Victoria, 42-43, Promenade, SOUTHPORT,
PR9 0DS",
"PostalCode": "PR9 0DS",
"City": "SOUTHPORT",
"Country": "UNITED KINGDOM",
"Type": "2",
"Ranges": [],
"user_fields": []
},
{
"FirmName": "The Victoria, 2a",
"AddressLine1": "Hough Side Road",
"LastLine": "PUDSEY, LS28 9BR",
"FormattedAddress": "The Victoria, 2a, Hough Side Road, PUDSEY,
LS28 9BR",
"PostalCode": "LS28 9BR",
"City": "PUDSEY",
"Country": "UNITED KINGDOM",
"Type": "2",
"Ranges": [],
"user_fields": []
},
{
"FirmName": "The Victoria",
"AddressLine1": "Ainsworth Road",
"LastLine": "Radcliffe, MANCHESTER, M26 4FD",
"FormattedAddress": "The Victoria, 119, Ainsworth Road, Radcliffe, MANCHESTER,
M26 4FD",
"Locality": "Radcliffe",
"PostalCode": "M26 4FD",
"City": "MANCHESTER",
"Country": "UNITED KINGDOM",
"Type": "2",
"Ranges": [],
"user_fields": []
}
]
}