dotnet add package what3words.dotnet.wrapper --version 3.0.5
NuGet\Install-Package what3words.dotnet.wrapper -Version 3.0.5
<PackageReference Include="what3words.dotnet.wrapper" Version="3.0.5" />
paket add what3words.dotnet.wrapper --version 3.0.5
#r "nuget: what3words.dotnet.wrapper, 3.0.5"
// Install what3words.dotnet.wrapper as a Cake Addin #addin nuget:?package=what3words.dotnet.wrapper&version=3.0.5 // Install what3words.dotnet.wrapper as a Cake Tool #tool nuget:?package=what3words.dotnet.wrapper&version=3.0.5
<img src="https://what3words.com/assets/images/w3w_square_red.png" width="64" height="64" alt="what3words"/> w3w-dotnet-wrapper
An .NET library to use the what3words v3 API.
API methods are grouped into a single service object which can be centrally managed by a What3WordsV3 instance. It will act as a factory for all of the API endpoints and will automatically initialize them with your API key.
See the what3words public API documentation
To obtain an API key, please visit https://what3words.com/select-plan and sign up for an account.
var wrapper = new What3WordsV3("YOUR_API_KEY_HERE");
If you run our Enterprise Suite API Server yourself, you may specify the URL to your own server like so:
var wrapper = new What3Words("YOUR_API_KEY_HERE", "https://api.yourserver.com")
- ConvertTo3WA() - Convert a coordinate (latitude and longitude) to a 3 word address:
var result = await wrapper.ConvertTo3WA(new Coordinates(51.222011, 0.152311)).RequestAsync();
- ConvertToCoordinates() - Convert a 3 word address to a coordinate (latitude and longitude):
var result = await wrapper.ConvertToCoordinates("filled.count.soap").RequestAsync();
- Autosuggest() - AutoSuggest can take a slightly incorrect 3 word address, and suggest a list of valid 3 word addresses. For more autosuggest proprieties similar to focus below go to our documentation
var result = await wrapper.Autosuggest("index.home.r", new AutosuggestOptions().SetFocus(51.502,-0.12345)).RequestAsync();
- GridSection() - Returns a section of the 3m x 3m what3words grid for a bounding box (Coordinats SW, Coordinates NE).
var result = await wrapper.GridSection(new Coordinates(51.222011, 0.152311), new Coordinates(51.222609, 0.152898)).RequestAsync();
- AvailableLanguages() - Retrieves a list all available 3 word address languages.
var result = await wrapper.AvailableLanguages().RequestAsync();
|Product||Versions Compatible and additional computed target framework versions.|
|.NET||net5.0 was computed. 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-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed.|
|.NET Core||netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed.|
|.NET Standard||netstandard2.0 is compatible. netstandard2.1 was computed.|
|.NET Framework||net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed.|
|MonoAndroid||monoandroid was computed.|
|MonoMac||monomac was computed.|
|MonoTouch||monotouch was computed.|
|Tizen||tizen40 was computed. tizen60 was computed.|
|Xamarin.iOS||xamarinios was computed.|
|Xamarin.Mac||xamarinmac was computed.|
|Xamarin.TVOS||xamarintvos was computed.|
|Xamarin.WatchOS||xamarinwatchos was computed.|
- Refit (>= 6.0.24)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.