Thelocator 3.0.2.1

dotnet add package Thelocator --version 3.0.2.1
                    
NuGet\Install-Package Thelocator -Version 3.0.2.1
                    
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="Thelocator" Version="3.0.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Thelocator" Version="3.0.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Thelocator" />
                    
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 Thelocator --version 3.0.2.1
                    
#r "nuget: Thelocator, 3.0.2.1"
                    
#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 Thelocator@3.0.2.1
                    
#: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=Thelocator&version=3.0.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Thelocator&version=3.0.2.1
                    
Install as a Cake Tool

The Locator Library

This library provides you with location depending on ur IP, u can either get user IP or use their Ip to get their location (country)

How to use

Methods
  • GetLocation

This method returns an object that contains the country the ip is associated to together with details concerning their currency. This method is parameterless, it's determines ur ip address.

  • GetIp

This method returns your ip address in IPV4

  • GetLocationWithIp

This method returns an object that contains the country the ip is associated to together with details concerning their currency. This method takes the ip supplied as a parameter

  • GetAllCountries

This method returns a list of an object that contains country and their respective currency with their 2 digit Country Code. This method takes no parameter

  • GetCities

This method returns a list of an object that contains city and their details associated with a country. This method takes Country code from get all country as a parameter

  • GetOneCountry

This method returns an object that contains country and their respective currency with their 2 digit Country Code. This method takes Country code from get all country as a parameter

  • GetOneCurrency

This method returns an object that contains details of a currency code. This method takes Currency code from get all country as a parameter

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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.
  • net5.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
3.0.2.1 171 4/1/2024
3.0.2 247 4/27/2023
3.0.1 210 4/26/2023
3.0.0 222 4/25/2023
2.0.0.2 301 4/3/2023
2.0.0.1 282 4/1/2023
2.0.0 248 4/1/2023
1.0.0 425 3/24/2022 1.0.0 is deprecated because it has critical bugs.