Git Product home page Git Product logo

navermap's Introduction

navermap

  • navermap 패키지는 기존 nkmap 패키지에서 naver api를 가져온 것으로 naver 지도 api가 수정된 것을 반영한 패키지입니다.

get_naver_map

여기서 작성한 gat_naver_map은 기존에 ggmap 패키지에 들어있던 get_navermap의 오류를 수정하고 geocode기능을 추가한 것입니다. 기존 get_navermap을 수정하고 재배포할 수 있게 허락해주신 Heewon Jeon에게 감사드립니다.

Installation

devtools를 이용해 install_github함수를 쓰면 편리하게 설치할 수 있습니다.

devtools::install_github("subinjo92/navermap")
library('navermap')

usage

file_drawer

ggmap 패키지의 내부 utility function으로 다른 함수의 내부에서 돌아가기 위해 추가한 함수입니다.

getBorderLonLat

기존 ggmap 내부의 get_navermap함수내에 있던 함수로 get_nave_map을 통해 출력한 지도의 x축과 y축에 위도와 경도를 표시하기 위한 함수입니다.

geocode_naver

naver api를 이용한 geocode로 주소와 naver client id와 secret을 입력해줘야 사용가능합니다.

get_naver_map

center에는 위경도 또는 주소를 넣을 수 있습니다. 주소로 입력시 address를 TRUE로 주면 됩니다.

zoom은 확대할 단위이며 5 ~ 20까지입니다.

maptyper는 일반지도로 그릴 수 있으며 satellite를 입력하면 위성사진입니다. terrain은 지형도를 출력합니다.

scale은 지도의 해상도를 지정할 수 있으며 1은 저해상도, 2는 고해상도 지도를 출력합니다.

markers는 위경도값이 들어가며 지도위에 체크나 알파벳으로 특정지점을 표시할 수 있습니다.

네이버 client id, secret이 필요합니다.

참고할수 있는 사이트

https://apidocs.ncloud.com/ko/ai-naver/maps_static_map/

navermap's People

Contributors

subinjo92 avatar

Stargazers

Junah Bang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.