【问题标题】:How to get current currency code of current location in Windows Phone 8.1如何在 Windows Phone 8.1 中获取当前位置的当前货币代码
【发布时间】:2015-05-21 14:31:30
【问题描述】:

我定位到当前位置 - 国家和国家代码,但是如何在 Windows Phone 8.1 中获取该位置的货币代码?

【问题讨论】:

    标签: c# .net geolocation windows-phone-8.1 windows-8.1


    【解决方案1】:

    您可以通过网络调用网络服务将国家/地区代码映射到货币代码,或者在您的应用中嵌入国家代码到货币代码映射的列表。

    这是一个提供映射的 Web 服务示例。

    http://country.io/currency.json

    ...
    "US": "USD",
    "UY": "UYU",
    "UZ": "UZS",
    "VA": "EUR",
    "VC": "XCD",
    ...
    

    【讨论】:

    • nationsonline.org/oneworld/country_code_list.htm 我找到了这个很酷的 CountryCodes 列表,但在我的应用程序中找不到它们各自的 CurrencyCodes 来进行映射..
    • 转到我发布的链接,然后将文本复制并粘贴到您应用中的文件中。现在您有了国家代码到货币代码的映射。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-09
    • 1970-01-01
    相关资源
    最近更新 更多