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

Add Geocoder::Query#url method.

parent 64130c00
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ module Geocoder
if show_url
q = Geocoder::Query.new(query)
out << q.lookup.query_url(q) + "\n"
out << q.url + "\n"
exit 0
end
......
......@@ -36,6 +36,10 @@ module Geocoder
Lookup.get(name)
end
def url
lookup.query_url(self)
end
##
# Is the Query blank? (ie, should we not bother searching?)
# A query is considered blank if its text is nil or empty string AND
......
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