New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

naver_map

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

naver_map

  • 0.2.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Getting coordinates with address

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

The address will be converted into coordinates and returned. But coordinates can be plural. In this case, coordinates will be returned in array. And when your address is not clear, then this case occurred frequently. For example your address parameter is '서울특별시 중구'. Then you'll get many coordinates values.

Getting address with coordinates

city_hall.coordinates_to_address(126.9783882, 37.5666103)
=> ["서울특별시 중구 태평로1가 31", "서울특별시 중구 세종대로 110 서울시청"]

The coordinates will be converted into address. And address also can be can be plural.

Contributing

Bug reports and pull requests are welcome.

License

MIT

FAQs

Package last updated on 30 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc