ShowsOnSale.World 1.2.2

dotnet add package ShowsOnSale.World --version 1.2.2
                    
NuGet\Install-Package ShowsOnSale.World -Version 1.2.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ShowsOnSale.World" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ShowsOnSale.World" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="ShowsOnSale.World" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ShowsOnSale.World --version 1.2.2
                    
#r "nuget: ShowsOnSale.World, 1.2.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ShowsOnSale.World@1.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ShowsOnSale.World&version=1.2.2
                    
Install as a Cake Addin
#tool nuget:?package=ShowsOnSale.World&version=1.2.2
                    
Install as a Cake Tool

ShowsOnSale.World

A comprehensive C# library providing a static data representation of the world's geographical hierarchy, including countries, states/regions, cities, and additional metadata such as timezones, currencies, and ISO codes.

Features

  • Complete geographical data for countries worldwide
  • Detailed information for states/provinces and cities
  • Timezone data for each country
  • Currency information including symbols and names
  • ISO codes (ISO2, ISO3, numeric codes)
  • Region and subregion classifications
  • Translations for country names in multiple languages
  • Emoji flags for countries

Installation

Install the package via NuGet Package Manager:

Install-Package ShowsOnSale.World

Or via the .NET CLI:

dotnet add package ShowsOnSale.World

Usage

using ShowsOnSale.World;
using ShowsOnSale.World.Models;

// Get all countries
var allCountries = WorldData.All;

// Get a specific country by name
var usa = WorldData.GetCountryByName("United States");

// Get a country by ISO code
var japan = WorldData.GetCountryByCode("JP");

// Access country properties
Console.WriteLine($"Country: {usa.Name} ({usa.Iso2})");
Console.WriteLine($"Region: {usa.Region}, Subregion: {usa.Subregion}");
Console.WriteLine($"Capital: {usa.Capital}");
Console.WriteLine($"Currency: {usa.CurrencySymbol} {usa.CurrencyName}");
Console.WriteLine($"Phone Code: +{usa.PhoneCode}");
Console.WriteLine($"Emoji: {usa.Emoji}");

// Access translations
Console.WriteLine($"USA in French: {usa.Translations["fr"]}");

// Access timezones
foreach (var timezone in usa.Timezones)
{
    Console.WriteLine($"Timezone: {timezone.ZoneName} ({timezone.GmtOffsetName})");
}

// Access states/regions
foreach (var state in usa.States)
{
    Console.WriteLine($"State: {state.Name} ({state.StateCode})");
    
    // Access cities in each state
    foreach (var city in state.Cities)
    {
        Console.WriteLine($"  City: {city.Name} ({city.Latitude}, {city.Longitude})");
    }
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.2 177 5/30/2025
1.2.1 691 5/27/2025
1.2.1-beta.19 152 4/10/2025
1.2.1-beta.18 155 4/10/2025
1.2.0 191 4/10/2025
1.1.1-beta.17 146 4/10/2025
1.0.0 189 4/10/2025
0.0.1-beta.4 141 4/10/2025
0.0.1-beta.3 139 4/10/2025

Initial release