Allocating markers using address instead of lat/lng

Topics: Help
Mar 19, 2012 at 2:30 PM
Edited Mar 19, 2012 at 2:31 PM

Hi all,

I get the markers working with lat/lng, but I need it to working with the address itself.

This is the code I used:

 

GMapOverlay overlayOne = new GMapOverlay(wb_ConnectionMap, "OverlayOne");
            overlayOne.Markers.Add(new GMap.NET.WindowsForms.Markers.GMapMarkerGoogleRed(new PointLatLng(54.6961334816182, 25.2985095977783)));
            wb_ConnectionMap.Overlays.Add(overlayOne);

Please any help would be appriciated!
Coordinator
Mar 19, 2012 at 3:03 PM

use geocoder provider functions

Mar 19, 2012 at 3:24 PM

yes but how? can u please give me an exaple. Please dont tell me to look at the source beacuse I did and it did not help thats why i'm here

Coordinator
Mar 19, 2012 at 3:28 PM

look again ;}

         GeoCoderStatusCode status = GeoCoderStatusCode.Unknow;
         PointLatLng? pos = GMapProviders.GoogleMap.GetPoint("Lithuania, " + place, out status);
         if(pos != null && status == GeoCoderStatusCode.G_GEO_SUCCESS)
         {
            GMarkerGoogle m = new GMarkerGoogle(pos.Value, GMarkerGoogleType.green);
            m.ToolTip = new GMapRoundedToolTip(m);

            objects.Markers.Add(m);
         }

Nov 3, 2013 at 9:36 PM
Edited Nov 4, 2013 at 2:00 PM
Dear radioman

GeoCoderStatusCode status = GeoCoderStatusCode.Unknow;
PointLatLng? p = GMapProviders.GoogleMap.GetPoint("istanbul",out status);

returns always null value, always and always. You have any idea?

thanks
Coordinator
Nov 5, 2013 at 2:45 PM
add breakpoint, and check
Nov 6, 2013 at 7:39 AM
I have a warning. Maybe this warning causes to this problem. The warning is "Warning 1 Unable to find dependency 'SYSTEM.DATA.SQLITE' (Signature='DB937BC2D44FF139' Version='1.0.81.0') of assembly 'GMap.NET.Core.dll' "

P.S :I added breakpoint but could not found any way.

thanx
Coordinator
Nov 6, 2013 at 8:44 AM
press F11, goto function GetPoint, and check the code, i get GeoCoderStatusCode.G_GEO_SUCCESS, so it maybe be proxy issue or something for you
Nov 7, 2013 at 2:29 AM
I have received this code

"status G_GEO_SUCCESS GMap.NET.GeoCoderStatusCode" and
"pos null GMap.NET.PointLatLng?"

thanx
Coordinator
Nov 7, 2013 at 7:17 AM
check parsing code, maybe it's language related
Nov 7, 2013 at 3:55 PM
Dear Radioman

now I got exception like this "status ExceptionInCode GMap.NET.GeoCoderStatusCode"
How can I solve this problem?

thanx a lot for your patient and help
Nov 9, 2013 at 3:14 PM
Edited Nov 14, 2013 at 12:01 PM
Also I am using version 1.7, you have any idea??