Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get point using Gmap #110

Open
Vijayapriyacs opened this issue Sep 26, 2018 · 6 comments
Open

Get point using Gmap #110

Vijayapriyacs opened this issue Sep 26, 2018 · 6 comments

Comments

@Vijayapriyacs
Copy link

Vijayapriyacs commented Sep 26, 2018

Hi si
While I'm try to use get point of particular address
Geocode status becomes false
Will you please let me know how can I get point of particular address.
GeoCoderStatusCode status;
//Here I search the address and the city
PointLatLng? punt = GMapProviders.GoogleMap.GetPoint(punti[i].Address+ ", " + punti[i].City, out status);
//At this I point I check if I received the data
if (status == GeoCoderStatusCode.G_GEO_SUCCESS)
{
double la = punt.Value.Lat;
double lo = punt.Value.Lng;
marker = new GMarkerGoogle(new PointLatLng(la, lo), GMarkerGoogleType.green_dot);
punti[i].Latitudine = la;
punti[i].Longitudine = lo;
}
//If the

Thanks in advance.

@Vijayapriyacs
Copy link
Author

My geocode status always become unknown and ,result of get point always null.
Im using Gmap.NET 1.8.7 version.Please help me to sort out this error

@SaiBalaji202
Copy link

Use the version 1.8.0

@cdm22
Copy link

cdm22 commented Dec 20, 2018

@Vijayapriyacs I am also getting status of unknown and a result of null for the point.
Did you find a solution to this issue?
The current version appears to be 1.7.5
@SaiBalaji202 Where did you go to download version 1.8.7 or 1.8.0 ?

@SaiBalaji202
Copy link

SaiBalaji202 commented Dec 20, 2018 via email

@Vijayapriyacs
Copy link
Author

Vijayapriyacs commented Dec 20, 2018 via email

@cdm22
Copy link

cdm22 commented Dec 20, 2018

I did not realize that Windows Forms code was also in this judero01col/GMap.NET.
I downloaded v1.9.1 But the value was still null.
Then noticed it had an error in the console "REQUEST_DENIED"
from here https://stackoverflow.com/questions/32994634/this-api-project-is-not-authorized-to-use-this-api-please-ensure-that-this-api
It helped me figure out that I needed to enable an additional Google API called "Geocoding API"
after that it all started working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants