Normalize a Street Address in Ruby

gem 'cloudmersive-validate-api-client', '~> 2.1.6'
# load the gem
require 'cloudmersive-validate-api-client'
# setup authorization
CloudmersiveValidateApiClient.configure do |config|
# Configure API key authorization: Apikey
config.api_key['Apikey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Apikey'] = 'Bearer'
end
api_instance = CloudmersiveValidateApiClient::AddressApi.newinput = CloudmersiveValidateApiClient::ValidateAddressRequest.new # ValidateAddressRequest | Input parse requestbegin
#Normalize a street address
result = api_instance.address_normalize_address(input)
p result
rescue CloudmersiveValidateApiClient::ApiError => e
puts "Exception when calling AddressApi->address_normalize_address: #{e}"
end

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store