How to find out the adress from latitude and longitude?

2 posts, 0 answers
  1. Reinhard
    Reinhard avatar
    9 posts
    Member since:
    Jun 2010

    Posted 29 Sep 2011 Link to this post

    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




  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 04 Oct 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top