|
@@ -3,21 +3,20 @@ using System.Collections.Generic;
|
|
|
using Windows.UI.Xaml.Media.Imaging;
|
|
using Windows.UI.Xaml.Media.Imaging;
|
|
|
using Windows.UI.Core;
|
|
using Windows.UI.Core;
|
|
|
using Windows.UI.Xaml.Controls;
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
+using Windows.Devices.Geolocation;
|
|
|
|
|
|
|
|
namespace Breda_Tour.Data
|
|
namespace Breda_Tour.Data
|
|
|
{
|
|
{
|
|
|
class Waypoint
|
|
class Waypoint
|
|
|
{
|
|
{
|
|
|
- public float Lat { get; private set; }
|
|
|
|
|
- public float Long { get; private set; }
|
|
|
|
|
|
|
+ public Geopoint Position { get; private set; }
|
|
|
public String Title { get; private set; }
|
|
public String Title { get; private set; }
|
|
|
public String Description { get; private set; }
|
|
public String Description { get; private set; }
|
|
|
public List<Image> Photos { get; private set; }
|
|
public List<Image> Photos { get; private set; }
|
|
|
|
|
|
|
|
public Waypoint(float Lat, float Long, String Title, String Description, List<string> pictures)
|
|
public Waypoint(float Lat, float Long, String Title, String Description, List<string> pictures)
|
|
|
{
|
|
{
|
|
|
- this.Lat = Lat;
|
|
|
|
|
- this.Long = Long;
|
|
|
|
|
|
|
+ this.Position = new Geopoint(new BasicGeoposition() { Altitude = 0, Latitude = Lat, Longitude = Long });
|
|
|
this.Title = Title;
|
|
this.Title = Title;
|
|
|
this.Description = Description;
|
|
this.Description = Description;
|
|
|
this.Photos = new List<Image>();
|
|
this.Photos = new List<Image>();
|
|
@@ -33,10 +32,6 @@ namespace Breda_Tour.Data
|
|
|
Name = source
|
|
Name = source
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- foreach (Image i in Photos)
|
|
|
|
|
- {
|
|
|
|
|
- System.Diagnostics.Debug.WriteLine(i.Name);
|
|
|
|
|
- }
|
|
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|