开发者

Google Map Find address

开发者 https://www.devze.com 2023-01-30 21:39 出处:网络
My scenario: i\'m using Artem.G开发者_如何学CoogleMap.dll GoogleMarker oMarker = new GoogleMarker(42.1229, 24.7879);

My scenario:

i'm using Artem.G开发者_如何学CoogleMap.dll

GoogleMarker oMarker = new GoogleMarker(42.1229, 24.7879);            
GoogleMap1.Markers.Add(oMarker);

i need to find the location[Address] for particular Latitude and Longitude how can i do this by using googlemap? don't wants to display in gmap insteed of that get the name of locaiton

sorry for my poor english


Have a look at the documentation, it looks pretty easy:

http://googlemap.codeplex.com/wikipage?title=Google%20Geocoder&referringTitle=Documentation

You need to create a GeoRequest object and pass in the lat/lng in the constructor, here is the sample code from the documentation:

   GeoRequest request = new GeoRequest(42.1438409, 24.7495615);
    GeoResponse response = request.GetResponse();
    string address = response.Results[0].FormattedAddress;
    // TODO use address values
0

精彩评论

暂无评论...
验证码 换一张
取 消