class ZipCodeService {
static Future<List> getSuggestions(String query) async {
var httpClient = new HttpClient();
var uri = Uri.parse("http://zip.cgis.biz/csv/zip.php?zn=$query");
var request = await httpClient.getUrl(uri);
var response = await request.close();
var responseBody =
await response.transform(Encoding.getByName('euc-jp').decoder).join();
print(responseBody);
微软的不需要credit card.
Bing Map SDK
文档: https://www.bingmapsportal.com/Announcement 文档: https://docs.microsoft.com/en-us/bingmaps/articles/geocoding-japanese-addresses
比如: https://dev.virtualearth.net/REST/v1/Locations?countryRegion=JP&postalCode=1350016&culture=ja&key=$API_KEY";
免费且带汉字假名
http://zip.cgis.biz
XML (
UTF-8
) http://zip.cgis.biz/xml/zip.php?zn=1350016Cyper实战:
Raw CSV (
euc-jp
) http://zip.cgis.biz/csv/zip.php?zn=1350016Cyper实战:
最新postal code数据
http://zipcloud.ibsnet.co.jp/