Skip to content

ErikBoesen/hl-geocoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A light geocoder library for Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages