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, 6:59 AM EST
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 20, 2020, 9:36 PM EST
Its not working for me, giving error message - "Request Not Authorized or Over QueryLimit"
Arturo LoredoPosted Nov 18, 2019, 9:48 AM EST
I receive the error message "Request Not Authorized or Over QueryLimit"
Ankit SolankiPosted Jan 4, 2018, 9:08 PM EST
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, 2:24 AM EDT
Nice one .............
Rajveer singhPosted May 9, 2016, 2:35 AM EDT
if find out Current point not specific address
Fracasoft ComPosted Jan 18, 2016, 12:45 AM EST
very good code. short and sweet thanks a lot
Sulfikar NasarPosted Jan 4, 2015, 10:48 PM EST
Thanks Gaurav...It was very helpful for me....
Prabu pmpPosted Mar 21, 2014, 1:16 AM EDT
post sample source code...?
GanapaPosted Mar 18, 2014, 6:32 AM EDT
I need to find the latitude and longitude from particular image path. Can u please give me your suggestion how can i achieve. Thanks