NaverMap

Gem Version Build Status

This is ruby gem for using Naver Map API.

Installation

Add this line to your application's Gemfile:

gem 'naver_map'

And then execute:

$ bundle

Or install it yourself as:

$ gem install naver_map

Usage

require 'naver_map'

city_hall = NaverMap.new('input your client id', 'input your client secret')

First you need to confirm your Naver API client id and client secret key. You can confirm it at Naver Developer Application page. Then you can initialize naver_map with your client id and client secret key.

Get coordinates with address

city_hall.address_to_coordinates('서울특별시 중구 세종대로 110 서울특별시청')
=> [{:x=>126.9783882, :y=>37.5666103}] 

You can get coordinates with your inputting address. This return is array, cuz coordinates can be multiplle value. But we are plan to when return is single value then make return is not array.

Getting address with coordinates

Contributing

Bug reports and pull requests are welcome.