Topics: Help
Aug 24, 2013 at 9:23 AM
Hello ;
I am using for windows form , and I am trying to use :
Placemark pos = GMaps.Instance.GetPlacemarkFromGeocoder(item.Position);

Instance have no defined function for GetPlacemarkFromGeocoder

Is there any way for getting the GetPlacemarkFromGeocoder ?

I am using the Last Hot Build .

Aug 24, 2013 at 10:10 AM
these functions are moved to each provider
Aug 24, 2013 at 10:17 AM
Thanks for your reply ,I am using Google Maps.

What is that function if I am using Google map ?
Aug 25, 2013 at 6:09 AM
radioman wrote:
these functions are moved to each provider
Could you please provide me the function used in Google Map for getting the reverse Geocode
Aug 25, 2013 at 6:49 AM
Thank you I got it :
            GeoCoderStatusCode status = new GeoCoderStatusCode();
            Placemark? plc = new Placemark();
            plc = GMapProviders.GoogleMap.GetPlacemark(currentMarker.Position, out status);
Sep 15, 2013 at 8:08 AM

It seems that the Google Geocoder does not work anymore since september 2013

it is necessary to use V3 now

Do someone get that issue ?
Nov 18, 2013 at 5:27 PM
You can get the coordinates from a gmap point and reverse geocode this way
Public Function GetPlacemark(ByVal lng As Double, ByVal lat As Double) As String
            Dim myAddress As String = "Nothing"
            Dim webClient As New System.Net.WebClient
            Dim sLng As String = CStr(lng)
            Dim sLat As String = CStr(lat)
            sLng = Replace(sLng, ",", ".")
            sLat = Replace(sLat, ",", ".")
            webClient.Encoding = System.Text.Encoding.UTF8
            Dim result As String = webClient.DownloadString("" & sLat & "," & sLng & "&sensor=false")

            Dim xmlDoc As New XmlDocument()


            Dim m_nodelist As XmlNodeList

            m_nodelist = xmlDoc.SelectNodes("/GeocodeResponse/result/formatted_address")

            myAddress = m_nodelist(0).InnerText
            Return  myAddress
        End Function
Feb 17, 2014 at 3:31 AM
Well I had the same problem but I found a way to get the address of a point.
I know it's a bit messy but it gets the job done.
PointLatLng p = new PointLatLng(29.0894152, -110.9612378);
GDirections d;
GMap.NET.MapProviders.GoogleMapProvider.Instance.GetDirections(out d ,p, p, true, true, true, false, true);
It basically calculates a route using the same point as starting and ending points.
After this, we can get the start address from p, which is the address of the point.

I hope it helps someone.
Jan 18, 2015 at 6:38 AM
@pinwinocdb ty so much dude!
@radioman ty for it!! i love your work!