Calling the TerraService Web Service - Day 4 - Part 7

Download this episode

Download Video

Description

In this video Bob uses the Day 3 example to call the TerraService passing the coordinates from the phone's GPS to the web service in order to retrieve the city, state, and country. These values are saved in a private member variable of the class, which can be used when the note is saved.

Download the source code in c#

Download the source code in VB.Net

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      Vince

      Hi! I'm still stuck on that one. I've got those nasty warnings and errors. Does anyone have a solution? thanks

    • User profile image
      Vince

      Sorry, I got the solution : just don't launch VS with admin rights and it works fine!

    • User profile image
      Keerigan

      I always get stuck on this. I always get those errors, and the one time that I didn't, I was unable to properly get my location.

      I live in London Canada, and when I got to msrmaps.com, only the states are green. Does this mean that the terra service will not be able to tell me where I am in Canada? If not, is there another service that will work in Canada?

    • User profile image
      Keerigan

      I got it to work. I needed to have

      myWatcher = new GeoCoordinateWatcher(GeoPositionAccuracy.High); 
      myWatcher.MovementThreshold = 20; 

    • User profile image
      Keerigan

      and myWatcher.Start();

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.