国家文化国旗数据库导出?

发布于 2024-11-30 17:02:15 字数 88 浏览 3 评论 0原文

有谁知道我可以导出的数据库,我需要世界国家信息,包括:国家代码、文化(例如 en_US)、国旗图像和货币。

我试图用谷歌搜索,但没有找到任何东西。

Does anyone know a database that I can export, I need world countries information including: country code, culture (ex. en_US), flag image and currency.

I'm tried to google it, but haven't found anything.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

淑女气质 2024-12-07 17:02:16

我无能为力,但对于标志,我会看看找到的 FamFamFam 集 这里。这些标志与 GeoIP 有,但是这是两个字符代码(GB、US、FR 等),并不完全是您想要的。

至于货币,我相当困惑。某处可能有一张表格,但如果没有,您可以创建一个近似值;只有美元、英镑和欧元,也许默认为美元?

I can't help with anything else, but for the flags, I'd have a look at the FamFamFam set found here. These flags fit in perfectly with the country codes that GeoIP has, however these are two character codes (GB, US, FR, etc), not exactly what you were looking for.

As for currencies, I'm rather stumped. There might be a table out there somewhere, but if not, you could create an approximation; just have $, £ and Euro, with a default of $ perhaps?

双手揣兜 2024-12-07 17:02:16

您正在寻找 Geonames!我自己花了一段时间才找到它。我不知道为什么会这样,因为这是一个很棒的资源。

在许多其他数据中,Geonames 提供您寻找的世界各国数据:

http://www.geonames .org/countries


提供的数据示例:

文莱

国家名称:文莱 [其他语言]

iso 代码:BN、096 和 BRN

fips 代码:BX

首都:斯里巴加湾市

地区: 5,770.0 平方公里

人口:395,027

货币:美元 (BND)

语言:马来语(宏观语言)(ms-BN)、英语 (en-BN)

邻居:马来西亚

邮政编码格式:@@####

http://www.geonames.org/flags/x/bn.gif

You're looking for Geonames! It took me a while to find it, myself. I'm not sure why that is, because it's a fantastic resource.

Among many, many other data, Geonames provides the data you seek for countries of the world:

http://www.geonames.org/countries


Example of the data provided:

Brunei

country name: Brunei [other languages]

iso code: BN, 096 and BRN

fips code: BX

capital: Bandar Seri Begawan

area: 5,770.0 km²

population: 395,027

currency: Dollar (BND)

languages: Malay (macrolanguage) (ms-BN), English (en-BN)

neighbours: Malaysia

postal code format: @@####

http://www.geonames.org/flags/x/bn.gif

梦亿 2024-12-07 17:02:16

以下链接提供所有国家/地区的各种样式和尺寸的免费下载。
国旗以国家全名命名。

http://www.free-country-flags.com/

The following links provides free download of all the countries in various styles and sizes.
The flags are named with full name of the country.

http://www.free-country-flags.com/

逆流 2024-12-07 17:02:16

这是一个链接,我的正是您正在寻找的内容。唯一的问题是它不是免费的。但考虑到编译此类数据库所需的时间,对于 10 澳元而言,这是一笔划算的交易。

您将找到一个 mysql 格式、csv、excel 和 Access 格式的数据库,其中包含国家名称表、相应旗帜的图像名称、alpha 2 和 alpha 3 国家代码、通过 alpha 2 代码表链接到国家的 4000 多个州、货币名称以及属于国家/地区的货币代码,并且可下载的 .zip 文件中还包含一个包含国家/地区国旗图像的目录。

将所有这些放在一起需要花费数天的时间,因此如果您确实需要这种数据库,那么这笔钱花得值。
这是下载链接。

http://www.lasser.com.au/downloads/country-and -区域列表

Here is a link that my have exactly what you are looking for. The only catch, it's not free. But for AUD 10 it is a good deal considering the time it would take to compile this sort of database.

You will find a database in mysql format, csv, excel, and Access containing tables with country names, image names of corresponding flags, alpha 2 and alpha 3 country codes, over 4000 states linked to the countries via alpha 2 code table, currency names and currency codes belonging to the countries and there is also a directory with country flag images included in the downloadable .zip file.

To put all this together would take days of work, so it is money well spent if you really need this sort of database.
Here is the link to the download.

http://www.lasser.com.au/downloads/country-and-region-list

没︽人懂的悲伤 2024-12-07 17:02:16

在这里,我收集了带有国旗的国家、带有照片的城市以及 MySQL 数据库中的其他各种信息:

https://github。 com/turalus/openDB

Here I collected countries with their flags, cities with their photos and other various information inside MySQL database:

https://github.com/turalus/openDB

丑疤怪 2024-12-07 17:02:16

与@JamWaffles 相反,我无法提供图标,但我可以为您提供一份不错的国家/货币代码列表。

大约一年前,我在 PayPal XDevelopers 网站 上找到了该信息,但我找不到确切的信息页。

示例:

'USD' => array(
'title' => 'U.S. Dollar',
    'symbol_left' => '$', // $
    'symbol_right' => '',
    'decimal_point' => '.',
    'thousands_point' => ',',
    'decimal_places' => 2)

查看完整数组 https://gist.github.com/1161248

您还可以获取货币数据数据库,不过我没看过,更不用说以前用过。 http://www.unece.org/etrades/download/archives.htm

Inversely to @JamWaffles, I can't supply icons, but I can provide you with a decent list of country/currency codes.

I found the info on PayPal XDevelopers site about a year ago, but I can't find the exact page.

Sample:

'USD' => array(
'title' => 'U.S. Dollar',
    'symbol_left' => '$', // $
    'symbol_right' => '',
    'decimal_point' => '.',
    'thousands_point' => ',',
    'decimal_places' => 2)

See the full array at https://gist.github.com/1161248

You can also grab a database of currency data, but I haven't looked at it, never mind used it before. http://www.unece.org/etrades/download/archives.htm

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文