我需要查找邮政编码(邮政编码)并获取城市、纬度和经度。Geonames 是否有支持这种格式的文件?
我下载了 AllCountries.txt,其中不包含邮政编码。
这是我为所有国家创建的表结构。
CREATE TABLE [dbo].[AllCountries](
[geonameid] [int] NOT NULL,
[name] [nvarchar](200) NULL,
[asciiname] [nvarchar](200) NULL,
[alternatenames] [nvarchar](max) NULL,
[latitude] [float] NULL,
[longitude] [float] NULL,
[feature_class] [char](2) NULL,
[feature_code] [nvarchar](10) NULL,
[country_code] [char](3) NULL,
[cc2] [char](60) NULL,
[admin1_code] [nvarchar](20) NULL,
[admin2_code] [nvarchar](80) NULL,
[admin3_code] [nvarchar](20) NULL,
[admin4_code] [nvarchar](20) NULL,
[population] [bigint] NULL,
[elevation] [int] NULL,
[dem] [int] NULL,
[timezone] [nvarchar](200) NULL,
[modification_date] [date] NULL,
PRIMARY KEY CLUSTERED
(
[geonameid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
如何获取所有国家/地区的所有邮政编码,以及城市和坐标?
谢谢