Created
April 7, 2017 03:23
-
-
Save nayeemzen/b14bc520aef738ea0ed739f66722b030 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 = new 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