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

Rename variable to be more descriptive.

parent 5d5b3e30
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ module Geocoder ...@@ -93,7 +93,7 @@ module Geocoder
end end
if (result = Geocoder.search(query).first) if (result = Geocoder.search(query).first)
lookup = Geocoder::Lookup.get(:google) google = Geocoder::Lookup.get(:google)
lines = [ lines = [
["Latitude", result.latitude], ["Latitude", result.latitude],
["Longitude", result.longitude], ["Longitude", result.longitude],
...@@ -102,7 +102,7 @@ module Geocoder ...@@ -102,7 +102,7 @@ module Geocoder
["State/province", result.state], ["State/province", result.state],
["Postal code", result.postal_code], ["Postal code", result.postal_code],
["Country", result.country], ["Country", result.country],
["Google map", lookup.map_link_url(result.coordinates)], ["Google map", google.map_link_url(result.coordinates)],
] ]
lines.each do |line| lines.each do |line|
out << (line[0] + ": ").ljust(18) + line[1].to_s + "\n" out << (line[0] + ": ").ljust(18) + line[1].to_s + "\n"
......
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