Example #1
0
        public void testSummaryProperties()
        {
            String postal = "19803";  // Postal

            try
            {
                // first arguemnt 'basePath' is optional
                PropertiesApi propertiesApi = new PropertiesApi("http://demo2.onboardis.us");
                Label20.Text = propertiesApi.Summary(postal);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #2
0
        public void testIdsProperties()
        {
            String postal = "19980";  // Geoformat


            try
            {
                // first arguemnt 'basePath' is optional
                PropertiesApi propertiesApi = new PropertiesApi("http://demo2.onboardis.us");
                Label12.Text = propertiesApi.Ids(postal);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #3
0
        public void testSnapshotsProperties()
        {
            String postal = "19964"; // Geoformat
            String page   = "1";     // Page
            String size   = "30";    // Size

            try
            {
                // first arguemnt 'basePath' is optional
                PropertiesApi propertiesApi = new PropertiesApi("http://demo2.onboardis.us");
                Label16.Text = propertiesApi.Snapshots(postal, page, size);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #4
0
        public void testZipSummariesProperties()
        {
            String zip    = "19967"; // Bbox
            String page   = "1";     // Page
            String size   = "30";    // Size
            String filter = "";      // Filter

            try
            {
                // first arguemnt 'basePath' is optional
                PropertiesApi propertiesApi = new PropertiesApi("http://demo2.onboardis.us");
                Label24.Text = propertiesApi.ZipSummaries(zip, page, size, filter);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #5
0
        public void testSummariesProperties()
        {
            String bbox   = "-75.60516357421875"; // Bbox
            String page   = "1";                  // Page
            String size   = "30";                 // Size
            String filter = "";                   // Filter

            try
            {
                // first arguemnt 'basePath' is optional
                PropertiesApi propertiesApi = new PropertiesApi("http://demo2.onboardis.us");
                Label18.Text = propertiesApi.Summaries(bbox, page, size, filter);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #6
0
        public void testSummaryRadiusAddressProperties()
        {
            String point  = "address:15+Bay+Reach+Rehoboth+Beach+DE+19971"; // Point
            String radius = "10";                                           // Radius
            String unit   = "mi";                                           //Unit
            String page   = "1";                                            // Page
            String size   = "30";                                           // Size

            try
            {
                // first arguemnt 'basePath' is optional
                PropertiesApi propertiesApi = new PropertiesApi("http://demo2.onboardis.us");
                Label26.Text = propertiesApi.SummaryRadiusAddress(point, radius, unit, page, size);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #7
0
        public void testSummaryRadiusProperties()
        {
            String point  = "-75.0517300000,38.4514870000"; // Point
            String radius = "20";                           // Radius
            String unit   = "mi";                           //Unit
            String page   = "1";                            // Page
            String size   = "30";                           // Size

            try
            {
                // first arguemnt 'basePath' is optional
                PropertiesApi propertiesApi = new PropertiesApi("http://demo2.onboardis.us");
                Label22.Text = propertiesApi.SummaryRadius(point, radius, unit, page, size);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #8
0
        public void testPostalAddressProperties()
        {
            String postal = "19968"; // Geoformat
            String page   = "1";     // Page
            String size   = "30";    // Size
            String filter = "";      // Filter


            try
            {
                // first arguemnt 'basePath' is optional
                PropertiesApi propertiesApi = new PropertiesApi("http://demo2.onboardis.us");
                Label14.Text = propertiesApi.PostalAddress(postal, page, size, filter);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #9
0
 public PropertiesAPIExamples()
 {
     api = new PropertiesApi(AppSID, SecretKey);
 }
 public void Init()
 {
     m_instance = new PropertiesApi(TestUtils.Configuration);
 }