Project

glw

0.0
No commit activity in last 3 years
No release in over 3 years
A wrapper for the geocoder gem to return the place name and more for a given longitude and latitude. #gps #geolocation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.4.4, ~> 1.4
>= 1.0.1, ~> 1.0
>= 0.2.2, ~> 0.2
 Project Readme

Introducing the Glw gem

require 'glw'

glw = Glw.new
r3 = glw.locate 55.91918833, -3.17699833

The Glw gem uses Google's geolocation API service via the the Geocoder gem.

Output:

{
  :address=>"16 Blackford Glen Rd, Edinburgh EH16, UK", 
  :city=>"Edinburgh", :coordinates=>[55.9191027, -3.1769954], 
  :country=>"United Kingdom", :postal_code=>"EH16", 
  :route=>"Blackford Glen Road", :street_number=>"16", 
  :types=>["street_address"], :relative_distance=>0.01, :relative_bearing=>359
}

Resources

glw gem gps coordinates location