WayPoint.cs 736 B

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