Code example for Address

Methods: setLatitudesetLongitude

    public List<Address> getFromLocationName(String locationName, int maxResults) throws IOException {
        this.lastLocationName = locationName;
        if (shouldSimulateGeocodeException) {
            throw new IOException("Simulated geocode exception");
        Address address = new Address(Locale.getDefault());
        return oneElementList(address);
     * Sets up a simulated response for {@link #getFromLocation(double, double, int)} 
     * @param address     the address for the response 
     * @param city        the city for the response 
     * @param state       the state for the response 
     * @param zip         the zip code for the response 
     * @param countryCode the country code for the response