-
Notifications
You must be signed in to change notification settings - Fork 0
sunchess/YandexGeocode
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published