The following forum(s) have migrated to Microsoft Q&A (Preview): Developing Universal Windows apps!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

Find city, state zip via lat & long RRS feed

  • Question

  • I am trying to find city, state zip via lat & long. I am following this sample, but can't see .Credentials. This is the right webservices?
    reverseGeocodeRequest.Credentials = new BingMaps.Credentials();  <<< don't see  .Credentials

    ReverseGeocodeRequest reverseRequest = new ReverseGeocodeRequest();
    reverseRequest.Credentials = new Credentials();
    reverseRequest.Credentials.ApplicationId = Properties.Settings.Default.BingApplicationId;
    reverseRequest.Location = new Location(); <<<< I can't find Location class here
    reverseRequest.Location.Latitude = response.Results[0].Locations[0].Latitude; // 49.647213
    reverseRequest.Location.Longitude = response.Results[0].Locations[0].Longitude; // -1.63482
    GeocodeResponse res = client.ReverseGeocode(reverseRequest);
    Monday, June 13, 2011 5:23 AM

All replies

  • I found this, is it correct?
    reverseRequests.Location = new Microsoft.Phone.Controls.Maps.Platform.Location();
    Monday, June 13, 2011 6:00 AM
  • plz check

    watch the video u get all info
    also u can download source code from this link

    Friday, November 11, 2011 6:25 AM