use of se.walkercrou.places.Place in project amos-ss17-alexa by c-i-ber.
the class LocationTest method placesTest.
@Test
public void placesTest() throws InterruptedException {
Address dummyAddress = new Address();
String slotValue = "Sparkasse";
LatLng deviceLocation = GeoCoder.getLatLng(dummyAddress);
List<Place> places = PlaceFinder.findNearbyPlace(deviceLocation, slotValue);
Place place = PlaceFinder.findOpeningHoursPlace(places, slotValue);
log.warn("Addresse: " + place.getAddress());
for (Hours.Period period : place.getHours().getPeriods()) {
log.info("Place: " + period.getOpeningDay());
log.info("Place: " + period.getOpeningTime());
log.info("Place: " + period.getClosingTime());
}
}