Skip to content

jrobertson/glw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A wrapper for the geocoder gem to returns the place name and more for a given longitude and latitude. #gps #geolocation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages