Code example for Address

Methods: getAddressLinegetAdminAreagetLocalitygetPostalCode

0
		Station station = StationManager.get("ASHB");
		assertNotNull(station);
		assertEquals("Ashby", station.getName());
		 
		Address address = station.getAddress();
		assertNotNull(address);
		assertEquals("3100 Adeline Street", address.getAddressLine(0));
		assertEquals("Berkeley", address.getLocality());
		assertEquals("CA", address.getAdminArea());
		assertEquals("94703", address.getPostalCode());
		 
		Location loc = station.getLocation();
		assertNotNull(loc);
		assertEquals(37.8, loc.getLatitude(), 0.09);
		assertEquals(-122.2, loc.getLongitude(), 0.09);
	} 
	 
	public void testStation1() { 
		Station station = StationManager.get("DELN");
		assertEquals("El Cerrito del Norte", station.getName());
Connect your IDE to all the code out there  Get Codota for Java