Click here to Skip to main content
15,892,005 members
Articles / Mobile Apps / Windows Mobile

Track your position using a Windows Mobile 6 device

Rate me:
Please Sign up or sign in to vote.
4.59/5 (23 votes)
29 Dec 2008CPOL5 min read 131.5K   3.2K   111  
Track your geographical position using a Windows Mobile 6 device and some Google Map programming.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PositionTrackerPC.Helpers;

namespace PositionTrackerPC.Helpers
{
    /// <summary>
    /// Helper class to display and remember locations visited in one session
    /// </summary>
    public class ShowLocation
    {
        private Coordinate _location = null;
        private string _remarks = string.Empty;
        private DateTime _timing = DateTime.Now;

        /// <summary>
        /// Location coordinates
        /// </summary>
        public Coordinate Location
        {
            get
            {
                return _location;
            }
            set
            {
                _location = value;
            }
        }

        /// <summary>
        /// Remarks for this location
        /// </summary>
        public string Remarks
        {
            get
            {
                return _remarks;
            }
            set
            {
                _remarks = value;
            }
        }

        /// <summary>
        /// Time this location was visited
        /// </summary>
        public DateTime Time
        {
            get
            {
                return _timing;
            }
            set
            {
                _timing = value;
            }
        }

        // Override to show time in combobox
        public override string ToString()
        {
            return Time.ToShortTimeString();
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Netherlands Netherlands
I'm a software engineer, working in this field since May 1989. Currently doing C# .NET development and project management using SCRUM.

Comments and Discussions