Skip to content
Snippets Groups Projects
Commit 730d52db authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge pull request #144 from sdball/update-cli-for-google-premier

updated cli to accept google premier key
parents 4592b738 c95de3c4
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,13 @@ module Geocoder ...@@ -13,8 +13,13 @@ module Geocoder
opts.separator "\nOptions: " opts.separator "\nOptions: "
opts.on("-k <key>", "--key <key>", opts.on("-k <key>", "--key <key>",
"Key for geocoding API (optional for most)") do |key| "Key for geocoding API (optional for most). For Google Premier use 'key client channel' separated by spaces") do |key|
Geocoder::Configuration.api_key = key premier_key = key.split(' ')
if premier_key.length == 3
Geocoder::Configuration.api_key = premier_key
else
Geocoder::Configuration.api_key = key
end
end end
opts.on("-l <language>", "--language <language>", opts.on("-l <language>", "--language <language>",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment