using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WebDataHelper;

namespace WPFSampleDataTester
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void btnCall_Click(object sender, RoutedEventArgs e)
        {
            // Make a call through the helper
            GeoDataHelper helper = new GeoDataHelper();
            var points = helper.GetNearPoints("2.975594 50.65062, 2.96776 50.640304", 5000);
            
            // Set ui info
            this.lvData.DataContext = points;
        }
    }
}
