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

 locked
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

    http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc/mex

    http://www.dizzey.com/development/net/getting-started-windows-phone-7-getting-location-reverse-geocoding-weather/


    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
    http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/GPS-Location-API-and-Calling-Web-Services


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

    Friday, November 11, 2011 6:25 AM