Skip to content

sunchess/YandexGeocode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  Gets geo coordinates through the +yandex geocode+ service
  How to use:
  rails plugin install https://[email protected]/sunchess/YandexGeocode.git
  
  You need JSON gem
    gem install json
    or
    gem 'json' in Gemfile

  You may use with https://github.com/PavelTyk/ya_map plugin there is config/ya-map-api-key.yml.

  If you use rails and have api key in file config/ya-map-api-key.yml

   @geo = Geocode.new
   or
   @geo = Geocode.new("long_api_key")
  
  Get result from service
   @geo.get("Москва")
  
  Parse json results
   @geo.parse
   @geo.result #return [37.617671,55.755768]
  or
   @geo.find("Москва")
   @geo.result #return ["37.609218", "55.753559"] strings in array!

About

Rails plugin for yandex geocode service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages