|
17 | 17 |
|
18 | 18 | public class RapidSdkGeographyDemoApp { |
19 | 19 |
|
20 | | - private static final Logger logger = LoggerFactory.getLogger(RapidSdkGeographyDemoApp.class); |
| 20 | + private static final Logger logger = LoggerFactory.getLogger(RapidSdkGeographyDemoApp.class); |
21 | 21 |
|
22 | | - public static void main(String[] args) throws ExecutionException, InterruptedException { |
| 22 | + public static void main(String[] args) throws ExecutionException, InterruptedException { |
23 | 23 |
|
24 | | - logger.info("======================================================================================="); |
25 | | - logger.info("======================================================================================="); |
26 | | - logger.info("== =="); |
27 | | - logger.info("== Howdy! This is a demonstration of Expedia Group RAPID SDK Geography, Enjoy! =="); |
28 | | - logger.info("== =="); |
29 | | - logger.info("======================================================================================="); |
30 | | - logger.info("======================================================================================="); |
| 24 | + logger.info("======================================================================================="); |
| 25 | + logger.info("======================================================================================="); |
| 26 | + logger.info("== =="); |
| 27 | + logger.info("== Howdy! This is a demonstration of Expedia Group RAPID SDK Geography, Enjoy! =="); |
| 28 | + logger.info("== =="); |
| 29 | + logger.info("======================================================================================="); |
| 30 | + logger.info("======================================================================================="); |
31 | 31 |
|
32 | | - logger.info("=============================== Running Geography Scenarios ==========================="); |
| 32 | + logger.info("=============================== Running Geography Scenarios ==========================="); |
33 | 33 |
|
34 | 34 | /* Run Get List of Region Names Scenario using the default profile |
35 | 35 | This scenario demonstrates the following: |
36 | 36 | 1. Getting all regions with details in a paginated manner |
37 | 37 | 2. Filtering region names |
38 | 38 | */ |
39 | | - GetListOfRegionNamesScenario getListOfRegionNamesScenario = new GetListOfRegionNamesScenario(); |
40 | | - getListOfRegionNamesScenario.setProfile(new DefaultRapidPartnerProfile()); |
41 | | - getListOfRegionNamesScenario.run(); |
| 39 | + GetListOfRegionNamesScenario getListOfRegionNamesScenario = new GetListOfRegionNamesScenario(); |
| 40 | + getListOfRegionNamesScenario.setProfile(new DefaultRapidPartnerProfile()); |
| 41 | + getListOfRegionNamesScenario.run(); |
42 | 42 |
|
43 | 43 | /* Run Get Region Name of Region Scenario using the default profile |
44 | 44 | This scenario demonstrates the following: |
45 | 45 | 1. Getting region details by region id |
46 | 46 | 2. Accessing region details |
47 | 47 | */ |
48 | | - GetRegionDetailsAndPropertyIdsScenario getRegionNameOfRegionScenario = new GetRegionDetailsAndPropertyIdsScenario(); |
49 | | - getRegionNameOfRegionScenario.setProfile(new DefaultRapidPartnerProfile()); |
50 | | - getRegionNameOfRegionScenario.run(); |
| 48 | + GetRegionDetailsAndPropertyIdsScenario getRegionNameOfRegionScenario = new GetRegionDetailsAndPropertyIdsScenario(); |
| 49 | + getRegionNameOfRegionScenario.setProfile(new DefaultRapidPartnerProfile()); |
| 50 | + getRegionNameOfRegionScenario.run(); |
51 | 51 |
|
52 | 52 | /* Run Get Region By Ancestor Id Scenario using the default profile |
53 | 53 | This scenario demonstrates the following: |
54 | 54 | 1. Getting paginated regions details by ancestor id |
55 | 55 | 2. Accessing region details |
56 | 56 | */ |
57 | | - GetRegionByAncestorIdScenario getRegionByAncestorIdScenario = new GetRegionByAncestorIdScenario(); |
58 | | - getRegionByAncestorIdScenario.setProfile(new DefaultRapidPartnerProfile()); |
59 | | - getRegionByAncestorIdScenario.run(); |
| 57 | + GetRegionByAncestorIdScenario getRegionByAncestorIdScenario = new GetRegionByAncestorIdScenario(); |
| 58 | + getRegionByAncestorIdScenario.setProfile(new DefaultRapidPartnerProfile()); |
| 59 | + getRegionByAncestorIdScenario.run(); |
60 | 60 |
|
61 | 61 | /* Run Get Region With MultiPolygon Coordinates Scenario using the default profile |
62 | 62 | This scenario demonstrates the following: |
63 | 63 | 1. Getting region details with multipolygon coordinates by region id |
64 | 64 | 2. Accessing region coordinates of type multipolygon |
65 | 65 | 3. Accessing every polygon list of coordinates. |
66 | 66 | */ |
67 | | - ParseRegionWithMultiPolygonCoordinatesScenario parseRegionWithMultiPolygonCoordinatesScenario = new ParseRegionWithMultiPolygonCoordinatesScenario(); |
68 | | - parseRegionWithMultiPolygonCoordinatesScenario.setProfile(new DefaultRapidPartnerProfile()); |
69 | | - parseRegionWithMultiPolygonCoordinatesScenario.run(); |
| 67 | + ParseRegionWithMultiPolygonCoordinatesScenario parseRegionWithMultiPolygonCoordinatesScenario = new ParseRegionWithMultiPolygonCoordinatesScenario(); |
| 68 | + parseRegionWithMultiPolygonCoordinatesScenario.setProfile(new DefaultRapidPartnerProfile()); |
| 69 | + parseRegionWithMultiPolygonCoordinatesScenario.run(); |
70 | 70 |
|
71 | 71 | /* Run Parse Region Ancestors Scenario using the default profile |
72 | 72 | This scenario demonstrates the following: |
73 | 73 | 1. Getting region details with ancestors by region id |
74 | 74 | 2. Parsing region ancestors |
75 | 75 | */ |
76 | | - ParseRegionAncestorsScenario parseRegionAncestorsScenario = new ParseRegionAncestorsScenario(); |
77 | | - parseRegionAncestorsScenario.setProfile(new DefaultRapidPartnerProfile()); |
78 | | - parseRegionAncestorsScenario.run(); |
| 76 | + ParseRegionAncestorsScenario parseRegionAncestorsScenario = new ParseRegionAncestorsScenario(); |
| 77 | + parseRegionAncestorsScenario.setProfile(new DefaultRapidPartnerProfile()); |
| 78 | + parseRegionAncestorsScenario.run(); |
79 | 79 |
|
80 | 80 | /* Run Parse Region Descendants Scenario using the default profile |
81 | 81 | This scenario demonstrates the following: |
82 | 82 | 1. Getting region details with descendants by region id |
83 | 83 | 2. Parsing region descendants |
84 | 84 | */ |
85 | | - ParseRegionDescendantsScenario parseRegionDescendantsScenario = new ParseRegionDescendantsScenario(); |
86 | | - parseRegionDescendantsScenario.setProfile(new DefaultRapidPartnerProfile()); |
87 | | - parseRegionDescendantsScenario.run(); |
| 85 | + ParseRegionDescendantsScenario parseRegionDescendantsScenario = new ParseRegionDescendantsScenario(); |
| 86 | + parseRegionDescendantsScenario.setProfile(new DefaultRapidPartnerProfile()); |
| 87 | + parseRegionDescendantsScenario.run(); |
88 | 88 |
|
89 | 89 | /* Run Parse Region Coordinates Scenario using the default profile |
90 | 90 | This scenario demonstrates the following: |
91 | 91 | 1. Getting region details with coordinates by region id |
92 | 92 | 2. Parsing region coordinates |
93 | 93 | */ |
94 | | - ParseRegionCoordinatesScenario parseRegionCoordinatesScenario = new ParseRegionCoordinatesScenario(); |
95 | | - parseRegionCoordinatesScenario.setProfile(new DefaultRapidPartnerProfile()); |
96 | | - parseRegionCoordinatesScenario.run(); |
| 94 | + ParseRegionCoordinatesScenario parseRegionCoordinatesScenario = new ParseRegionCoordinatesScenario(); |
| 95 | + parseRegionCoordinatesScenario.setProfile(new DefaultRapidPartnerProfile()); |
| 96 | + parseRegionCoordinatesScenario.run(); |
97 | 97 |
|
98 | 98 | /* Run Parse Region Categories Scenario using the default profile |
99 | 99 | This scenario demonstrates the following: |
100 | 100 | 1. Getting region details with property ids by region id |
101 | 101 | 2. Parsing region categories |
102 | 102 | */ |
103 | | - ParseRegionCategoriesScenario parseRegionCategoriesScenario = new ParseRegionCategoriesScenario(); |
104 | | - parseRegionCategoriesScenario.setProfile(new DefaultRapidPartnerProfile()); |
105 | | - parseRegionCategoriesScenario.run(); |
106 | | - |
107 | | - logger.info("=============================== End of Geography Scenarios ==========================="); |
108 | | - |
109 | | - logger.info("======================================================================================="); |
110 | | - logger.info("======================================================================================="); |
111 | | - logger.info("== =="); |
112 | | - logger.info("== That's all folks! That was the demonstration of RAPID SDK Geography. =="); |
113 | | - logger.info("== =="); |
114 | | - logger.info("======================================================================================="); |
115 | | - logger.info("======================================================================================="); |
116 | | - System.exit(0); |
117 | | - } |
| 103 | + ParseRegionCategoriesScenario parseRegionCategoriesScenario = new ParseRegionCategoriesScenario(); |
| 104 | + parseRegionCategoriesScenario.setProfile(new DefaultRapidPartnerProfile()); |
| 105 | + parseRegionCategoriesScenario.run(); |
| 106 | + |
| 107 | + logger.info("=============================== End of Geography Scenarios ==========================="); |
| 108 | + |
| 109 | + logger.info("======================================================================================="); |
| 110 | + logger.info("======================================================================================="); |
| 111 | + logger.info("== =="); |
| 112 | + logger.info("== That's all folks! That was the demonstration of RAPID SDK Geography. =="); |
| 113 | + logger.info("== =="); |
| 114 | + logger.info("======================================================================================="); |
| 115 | + logger.info("======================================================================================="); |
| 116 | + System.exit(0); |
| 117 | + } |
118 | 118 | } |
0 commit comments