Calling the TerraService Web Service - Day 4 - Part 7

Sign in to queue

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

Download

Download this episode

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();

Add Your 2 Cents