Package com.socrata.model

Examples of com.socrata.model.Address


        for (Object curr : results) {
            Map currRow = (Map)curr;
            Map location = (Map) currRow.get("location");
            Map human_address = (Map) location.get("human_address");

            Address address = new Address((String)human_address.get("address"),
                                          (String)human_address.get("city"),
                                          (String)human_address.get("state"),
                                          (String)human_address.get("zip"));

            TestCase.assertNotNull(location.get("longitude"));
            TestCase.assertNotNull(location.get("latitude"));
            TestCase.assertEquals(currRow.get("street"), address.getStreetAddress());
            TestCase.assertEquals(currRow.get("city"), address.getCity());
            TestCase.assertEquals(currRow.get("state"), address.getState());
            TestCase.assertEquals(currRow.get("zipcode"), address.getZip());
        }


        importer.deleteDataset(dataset.getId());
    }
View Full Code Here


        for (Object curr : results) {
            Map currRow = (Map)curr;
            Map location = (Map) currRow.get("address");
            Map human_address = (Map) location.get("human_address");

            Address address = new Address((String)human_address.get("address"),
                                          (String)human_address.get("city"),
                                          (String)human_address.get("state"),
                                          (String)human_address.get("zip"));

            TestCase.assertNotNull(location.get("longitude"));
            TestCase.assertNotNull(location.get("latitude"));
            TestCase.assertNotNull(address.getStreetAddress());
            TestCase.assertNotNull(address.getCity());
            TestCase.assertNotNull(address.getState());
            TestCase.assertNotNull(address.getZip());
        }

        importer.deleteDataset(dataset.getId());
    }
View Full Code Here

TOP

Related Classes of com.socrata.model.Address

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.