radioman / greatmaps

GMap.NET - Great Maps for Windows Forms & Presentation
912 stars 408 forks source link

Get point using Gmap #110

Open Vijayapriyacs opened 5 years ago

Vijayapriyacs commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Use the version 1.8.0

cdm22 commented 5 years ago

@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 commented 5 years ago

Hey, 1) Open the project/solution in Visual Studio, and open the console using the Tools > NuGet Package Manager > Package Manager Console command 2) uninstall existing version you have by typing the following command

Uninstall-Package GMap.NET.Windows -Force

3) Install 1.8.0 by writing the following command

Install-Package GMap.NET.Windows -Version 1.8.0

Hope my answer helps you.

Here is my complete guide to use Gmap.Net GMap Complete Guide: https://www.youtube.com/playlist?list=PLlD7n_T-mUjVuqIhWVfaNhnpqCZmNcA9e

If you have any doubts watch my GMap Complete Guide

Thanks and Regards, Balaji

On Thu 20 Dec, 2018, 9:05 AM cdmassey22 <notifications@github.com wrote:

@Vijayapriyacs https://github.com/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 https://github.com/SaiBalaji202 Where did you go to download version 1.8.7 or 1.8.0 ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/radioman/greatmaps/issues/110#issuecomment-448849851, or mute the thread https://github.com/notifications/unsubscribe-auth/AcQmEqKIZ56-5IM3ft8EuQtgLQOo8rmUks5u6wV-gaJpZM4W7CIu .

Vijayapriyacs commented 5 years ago

We should provide api key then only this error get resolved

On Thu 20 Dec, 2018, 9:29 AM Balaji, notifications@github.com wrote:

Hey, 1) Open the project/solution in Visual Studio, and open the console using the Tools > NuGet Package Manager > Package Manager Console command 2) uninstall existing version you have by typing the following command

Uninstall-Package GMap.NET.Windows -Force

3) Install 1.8.0 by writing the following command

Install-Package GMap.NET.Windows -Version 1.8.0

Hope my answer helps you.

Here is my complete guide to use Gmap.Net GMap Complete Guide: https://www.youtube.com/playlist?list=PLlD7n_T-mUjVuqIhWVfaNhnpqCZmNcA9e

If you have any doubts watch my GMap Complete Guide

Thanks and Regards, Balaji

On Thu 20 Dec, 2018, 9:05 AM cdmassey22 <notifications@github.com wrote:

@Vijayapriyacs https://github.com/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 https://github.com/SaiBalaji202 Where did you go to download version 1.8.7 or 1.8.0 ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/radioman/greatmaps/issues/110#issuecomment-448849851 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AcQmEqKIZ56-5IM3ft8EuQtgLQOo8rmUks5u6wV-gaJpZM4W7CIu

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/radioman/greatmaps/issues/110#issuecomment-448857048, or mute the thread https://github.com/notifications/unsubscribe-auth/AXTW_GfIg1NZylt5PqpPuyNPODbOxPD-ks5u6wsEgaJpZM4W7CIu .

cdm22 commented 5 years ago

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.