Created
April 7, 2017 03:26
-
-
Save nayeemzen/82a2df4869f5f8878bd2d72be299c16f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddressVerifier { | |
private GoogleMapsClient googleMapsClient; | |
public AddressVerifier(GoogleMapsClient googleMapsClient) { | |
this.googleMapsClient = googleMapsClient; | |
} | |
public boolean isVerified(String address) { | |
Result verificationResult = googleMapsClient.verifyAddress(address).result; | |
return verificationResult == Result.SUCCESS; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment