File tree Expand file tree Collapse file tree 4 files changed +34
-3
lines changed
com/smartystreets/api/us_reverse_geo Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,31 @@ publish: compile
24
24
-Dgpg.passphrase=${GPG_PASSPHRASE} \
25
25
deploy
26
26
27
- .PHONY : clean test integration-test compile publish
27
+
28
+ international_autocomplete_api :
29
+ mvn exec:java -Dexec.mainClass=" examples.InternationalAutocompleteExample"
30
+
31
+ international_street_api :
32
+ mvn exec:java -Dexec.mainClass=" examples.InternationalExample"
33
+
34
+ us_autocomplete_pro_api :
35
+ mvn exec:java -Dexec.mainClass=" examples.UsAutocompleteProExample"
36
+
37
+ us_enrichment_api :
38
+ mvn exec:java -Dexec.mainClass=" examples.UsEnrichmentExample"
39
+
40
+ us_extract_api :
41
+ mvn exec:java -Dexec.mainClass=" examples.UsExtractExample"
42
+
43
+ us_reverse_geo_api :
44
+ mvn exec:java -Dexec.mainClass=" examples.UsReverseGeoExample"
45
+
46
+ us_street_api :
47
+ mvn exec:java -Dexec.mainClass=" examples.UsStreetSingleAddressExample" && mvn exec:java -Dexec.mainClass=" examples.UsStreetMultipleAddressesExample"
48
+
49
+ us_zipcode_api :
50
+ mvn exec:java -Dexec.mainClass=" examples.UsZipCodeSingleLookupExample" && mvn exec:java -Dexec.mainClass=" examples.UsZipCodeMultipleLookupsExample"
51
+
52
+ examples : international_autocomplete_api international_street_api us_autocomplete_pro_api us_enrichment_api us_extract_api us_reverse_geo_api us_street_api us_zipcode_api
53
+
54
+ .PHONY : clean test integration-test compile publish examples international_autocomplete_api international_street_api us_autocomplete_pro_api us_enrichment_api us_extract_api us_reverse_geo_api us_street_api us_zipcode_api
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ public class Address implements Serializable {
12
12
private String stateAbbreviation ;
13
13
private String zipCode ;
14
14
private String source ;
15
+ private String smartykey ;
15
16
16
17
//endregion
17
18
@@ -28,4 +29,7 @@ public class Address implements Serializable {
28
29
@ JsonProperty ("source" )
29
30
public String getSource () { return this .source ; }
30
31
32
+ @ JsonProperty ("smarty_key" )
33
+ public String getSmartykey () { return this .smartykey ; }
34
+
31
35
}
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ public static void main(String[] args) {
20
20
// for client-side requests (browser/mobile), use this code:
21
21
//SharedCredentials credentials = new SharedCredentials(System.getenv("SMARTY_AUTH_WEB"), System.getenv("SMARTY_AUTH_REFERER"));
22
22
23
- ArrayList <String > licenses = new ArrayList <>();
24
- Client client = new ClientBuilder (credentials ).withLicenses (licenses ).buildInternationalAutcompleteApiClient ();
23
+ Client client = new ClientBuilder (credentials ).buildInternationalAutcompleteApiClient ();
25
24
Lookup lookup = new Lookup ("Louis" );
26
25
27
26
// Documentation for input fields can be found at:
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ public static void main(String[] args) {
46
46
System .out .println ("State Abbreviation: " + address .getStateAbbreviation ());
47
47
System .out .println ("ZIP Code: " + address .getZipCode ());
48
48
System .out .println ("License: " + coordinate .getLicense ());
49
+ System .out .println ("Smartykey: " + address .getSmartykey ());
49
50
System .out .println ();
50
51
}
51
52
}
You can’t perform that action at this time.
0 commit comments