Share via


Sample Code

The downloadable version of the Microsoft® MapPoint® Location Server SDK includes several samples that demonstrate how to use the new MapPoint Location Server Web Service and MapPoint Location Server management APIs. The samples are installed as Microsoft Visual Studio® .NET 2003 solution files, and are available in Microsoft Visual Basic®  .NET and Microsoft Visual C#® .NET.

For more information about the requirements for building and running these sample applications, see MapPoint Location Server Application Development Requirements and MapPoint Location Server Web Service Development Requirements.

Note  To run Pocket PC samples, your client (Pocket PC, Pocket PC emulator, or development computer) must be able to trust the Secure Sockets Layer (SSL) certificate presented by the server that is hosting the Web service. For information about how to add a root certificate manually, see this Microsoft Knowledge Base article.

Samples

  • Get a Map
    A Pocket PC application that shows how to locate your own position using the MapPoint Location Server Web Service and render a map centered on that position.
  • Get a Route  
    A Pocket PC application that shows how to get two positions and then create a route between them. This application allows the user to toggle between the map with a route and driving directions.
  • Find Nearby Places  
    A Pocket PC application that shows how to get your own position, and then find nearby places of interest using your current location.
  • Add Contacts
    A Microsoft Windows® application that shows how to automate the process of adding a list of users to each other’s contact lists. All users in the list must already be provisioned.
  • Delete Users
    An application that reads the (comma-separated) phone numbers specificed in a text file (flat file) and deletes the provisioned user profile that matches each phone number from the MapPoint Location Server database.
  • Add Find Nearby Categories
    A command-line tool that can you can use to import Find Nearby categories from an XML file into MapPoint Location Server. Additionally, you can export Find Nearby categories from MapPoint Location Server to an XML file.
  • Self Provision
    A Web application (ASP.NET) that allows enterprise users to provision themselves for MapPoint Location Server. For security reasons, only users with SMS notification capabilities can be self-provisioned.
    How this application works:
    A user provides the required information. The system sends a PIN (GUID) by means of SMS to the device specified by the user. The user enters the PIN into the form during the same session (to make sure that the user is the owner of the device). The page provisions the user.