// This program constructs several PlaceInformation objects and prints
// information about them and the distances between them and two locations
// (London and Mill Creek Hall).  It is intended to be used to test whether the
// PlaceInformation class is implemented correctly.

public class PlaceInformationClient {
    public static void main(String[] args) {
        PlaceInformation[] data =
            {new PlaceInformation("Space Needle", "Seattle Center",
                                  "tourist", 47.6205063, -122.3492774),
             new PlaceInformation("Alderwood Hall", "20210 68th Ave W",
                                  "school", 47.81565, -122.32687),
             new PlaceInformation("Triton Field", "19828 68th Ave W",
                                  "school, park", 47.81892, -122.32692)};

        GeoLocation london = new GeoLocation(51.5112139, -0.1198244);
        GeoLocation kane = new GeoLocation(47.81635, -122.32983);

        for (PlaceInformation info : data) {
            System.out.println("name               : " + info.getName());
            System.out.println("address            : " + info.getAddress());
            System.out.println("tags               : " + info.getTag());
            System.out.println("toString           : " + info);
            System.out.println("London             : " + info.distanceFrom(london));
            System.out.println("Mill Creek Hall    : " + info.distanceFrom(kane));
            System.out.println();
        }
    }
}