This is a migrated thread and some comments may be shown as answers.

How to find out the adress from latitude and longitude?

1 Answer 133 Views
Map
This is a migrated thread and some comments may be shown as answers.
Reinhard
Top achievements
Rank 2
Reinhard asked on 29 Sep 2011, 10:47 AM
Hello all.

I have (double) from latitude and longitude.
Now i want show the real adress from this location in the map.
And i must wait for the answer before i can do anything else.

I´ve tried:

var reverseGeocodeRequest = new ReverseGeocodeRequest();
reverseGeocodeRequest.Location = new Location(tt.Latitude,tt.Longitude);
 
var geocodeService = new GeocodeServiceClient();
GeocodeResponse geocodeResponse = geocodeService.ReverseGeocode(reverseGeocodeRequest);
 
if (geocodeResponse.Results.Length > 0)
    results = geocodeResponse.Results[0].DisplayName;
 
}

I get an error
Fehler 3 Argument "1": Konvertierung von "Telerik.Windows.Controls.Map.ReverseGeocodeRequest" in "Telerik.Windows.Controls.Map.WPFBingGeocodeService.ReverseGeocodeRequest" nicht möglich. 
GeocodeResponse geocodeResponse = geocodeService.ReverseGeocode(reverseGeocodeRequest); 

And i don´t  know why...

Can anyone help please?

Reinhard




1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 04 Oct 2011, 09:10 AM
Hi Reinhard,

Please, take a look into the following example:
http://demos.telerik.com/silverlight/#Map/Geocoding

It demonstrates how the reverse geocoding can be implemented using the RadMap control.

All the best,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Map
Asked by
Reinhard
Top achievements
Rank 2
Answers by
Andrey
Telerik team
Share this question
or