KhanGoogleGeocoder 1.0.0
dotnet add package KhanGoogleGeocoder --version 1.0.0
NuGet\Install-Package KhanGoogleGeocoder -Version 1.0.0
<PackageReference Include="KhanGoogleGeocoder" Version="1.0.0" />
paket add KhanGoogleGeocoder --version 1.0.0
#r "nuget: KhanGoogleGeocoder, 1.0.0"
// Install KhanGoogleGeocoder as a Cake Addin
#addin nuget:?package=KhanGoogleGeocoder&version=1.0.0
// Install KhanGoogleGeocoder as a Cake Tool
#tool nuget:?package=KhanGoogleGeocoder&version=1.0.0
KhanGoogleGecoder
KhanGoogleGeocoder is easy to use .Net Library
Getting started...
KhanGoogleGeocoder reverse geocoder is extremely easy to integrate and consume.
The Library consist of 5 reverse geocoding methods:
ReverseGeocode Method: This method take the latitude and longitude and return the full response.
ReverseGeocodeAddress: This method take the latitude and longitude and return the formatted address.
ReverseGeocodeStreet: This method take the latitude and longitude and return the full street name.
ReverseGeocodeDistrict: This method take the latitude and longitude and return the district name.
ReverseGeocodeStreetAndDistrict: This method take the latitude and longitude and return the full street name & district name.
Initialize the Constructor
//Please replace the api key with your own key
Geocoder geocoder = new Geocoder("PrtyuiC34pYY7ujnhyz-tYeNqUrxghtrfdpqu2K");
//Get main model status
var model = await geocoder.ReverseGeocode(latitude, longitude);
Console.WriteLine("Model Status: " + model.status);
Debug.WriteLine("Model Status: " + model.status);
//Get formatted address
var address = await geocoder.ReverseGeocodeAddress(latitude, longitude);
Console.WriteLine("Address: " + address);
Debug.WriteLine("Address: " + address);
//Get the street name
var street = await geocoder.ReverseGeocodeStreet(latitude, longitude);
Console.WriteLine("Street: " + street);
Debug.WriteLine("Street: " + street);
//Get district name
var district = await geocoder.ReverseGeocodeDistrict(latitude, longitude);
ConsolGe.WriteLine("District: " + district);
Debug.WriteLine("District: " + district);
Supported Operations The following operations are supported.
Google Maps
Reverse Geocode
Location
Product | Versions 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. |
-
net5.0
- Newtonsoft.Json (>= 13.0.1)
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.0.0 | 212 | 6/9/2022 |
This is initial release