0.0
No commit activity in last 3 years
No release in over 3 years
Light library to make requests to Google Maps's Geocoding API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Hecka Light Geocoder

Unofficial Google Maps Geocoder library.

This API returns JSON-parsed data fetched from the Google Maps Geocoding API.

Setup

To use these functions, you must require the hl-geocoder gem:

require 'hl-geocoder'

Before using the library, you must instantiate the class, providing your app's ID, for example:

geocoder = Geocoder.new('thIsIsnOtaReAlKeyOHuieIDGsad7892qe')

Retrieval Functions

Replace geocoder with whatever keyword you use to initialize the API.

  • geocoder.geocode(address) - Geocode an address, town name, etc.
  • geocoder.reverse_geocode(latitude, longitude) - Reverse geocode an address (give coordinates instead of the place name).

See example.rb for a usage example.

Documentation for the Google Maps Geocoding API can be found here.

Authors

This software was created and is maintained by Erik Boesen.

License

This software is protected under the MIT License.