You have to install GoogleMaps.LocationServices from the NuGet package. It uses Google's REST API to get lat/long for a given address. Using these you can get latitude and longitude without any need of any API Key.
To install GoogleMaps.LocationServices, run the following command in the Package Manger Console.
PM> Install-Package GoogleMaps.LocationServices
After Install the above package you can use it like this:
Firstly, Adding this NameSpace.
using
GoogleMaps.LocationServices;
Then use GoogleLocationService() class to get the latitude and longitude of any given address.
Example:
public
static
void
Main()
{
var
address
=
"75
Ninth Avenue 2nd and 4th Floors New York, NY 10011";
var
locationService
=
new
GoogleLocationService();
var
point
=
locationService.GetLatLongFromAddress(address);
var
latitude
=
point.Latitude;
var
longitude
=
point.Longitude;
/
}
Then you can easily plot it to the Google maps.

Harshit guptaPosted Jan 14, 2021, 11:59 AM
System.Net.WebException: 'Request denied, it's likely you need to enable the necessary Google maps APIs' iam gettng this error. please help
360 VideosPosted Feb 21, 2020, 2:36 AM
Its not working for me, giving error message - "Request Not Authorized or Over QueryLimit"
Arturo LoredoPosted Nov 18, 2019, 2:48 PM
I receive the error message "Request Not Authorized or Over QueryLimit"
Ankit SolankiPosted Jan 5, 2018, 2:08 AM
Hello Gaurav, Can you please let me know how much calls are provided this service? Because i think google has to provide only 2500 call on per day.
Manav PandyaPosted Jun 6, 2017, 6:24 AM
Nice one .............
Rajveer singhPosted May 9, 2016, 6:35 AM
if find out Current point not specific address
Fracasoft ComPosted Jan 18, 2016, 5:45 AM
very good code. short and sweet thanks a lot
Sulfikar NasarPosted Jan 5, 2015, 3:48 AM
Thanks Gaurav...It was very helpful for me....
Prabu pmpPosted Mar 21, 2014, 5:16 AM
post sample source code...?
GanapaPosted Mar 18, 2014, 10:32 AM
I need to find the latitude and longitude from particular image path. Can u please give me your suggestion how can i achieve. Thanks