WayPoint.cs 831 B

1234567891011121314151617181920212223242526272829303132
  1. using Windows.Devices.Geolocation;
  2. namespace Breda_Tour.Data_
  3. {
  4. public class WayPoint
  5. {
  6. private Geopoint _position;
  7. public Geopoint Position
  8. {
  9. get { return _position; }
  10. }
  11. private string title;
  12. public string description { get; set; }
  13. public int number;
  14. public WayPoint(Geopoint position, string title, int number)
  15. {
  16. this._position = position;
  17. this.title = title;
  18. this.number = number;
  19. }
  20. public WayPoint(double latitude, double longitude, string title, int number)
  21. {
  22. _position = new Geopoint(new BasicGeoposition() { Altitude = 0, Latitude = latitude, Longitude = longitude });
  23. this.title = title;
  24. this.number = number;
  25. }
  26. }
  27. }