https://developers.google.com -> "maps platform" -> https://cloud.google.com/maps-platform

  • 0) Google 지도
    • GCP에서, "Google Maps Platform"의 다양한 서비스를 적절히 골라쓰면 된다.
    • https://console.cloud.google.com/google/maps-apis
    • (참고로 GCP의, "API 및 서비스"에서 API Key를 발급받을 수 있음)
    • https://console.cloud.google.com/apis
    • (참고로 GCP의, "결제"에 해당 프로젝트를 잘 연결해두는것이 좋음)
    • https://console.cloud.google.com/billing
  • 1) Geocoding API
    • 주소를 지리 좌표로 변환하거나 그 반대로 변환합니다.
    • https://developers.google.com/maps/documentation/geocoding/intro
    • 1-1) Geocoding (주소 -> 좌표)
      • 예) https://maps.googleapis.com/maps/api/geocode/json?address=해운대&language=ko&key=키
      • 요청
        • components 등의 파라미터로 필터링 기능 제공 함.
      • 응답
        • "status" : "OK"
        • "results" : [ {"formatted_address":"주소","address_components":[{정보},...], ... } , ... ]
        • ... 
    • 1-2) Reverse Geocoding (좌표 -> 주소)
      • 예) https://maps.googleapis.com/maps/api/geocode/json?latlng=35.163,129.163&language=ko&key=키
      • 요청
        • result_type 등등의 파라미터로 필터링 기능 제공 함.
      • 응답
        • "status" : "OK"
        • "results" : [ {"formatted_address":"주소","address_components":[{정보},...], ... } , ... ]
        • ...
  • 2) Maps Static API
    • 웹사이트에 최소한의 코드로 삽입 가능한 간단한 지도 이미지를 추가합니다.
    • https://developers.google.com/maps/documentation/maps-static/dev-guide
    • Static Map (정적인 지도이미지)
      • 예) https://maps.googleapis.com/maps/api/staticmap?center=35.165,129.165&zoom=16&size=800x600&scale=2
        • &markers=size:mid|color:orange|35.164,129.165
        • &markers=icon:https://goo.gl/5y3S82|35.165,129.167
        • &markers=icon:http://tinyurl.com/jrhlvu6|35.166,129.164
        • &markers=icon:https://goo.gl/1oTJ9Y|35.164,129.163
        • &key=키
      • zoom : 1=World, 10=City, 15=Streets, 20=Buildings
      • size & scale : 크기 및 픽셀 해상도
      • maptype : roadmap, satellite, terrain, hybrid 
      • markers : size={tiny, mid, small}, color={brown, purple, gray, orange, ...}, ...
        • icon : 인코딩된 URL으로 지정. 최대 64x64. png jpeg gif 지원.
      • path : ...
      • visible : 뷰포트 (영역창) 제공.
  • 3) Maps JavaScript API
    • 웹사이트에 대화형 지도를 추가합니다. 자신만의 콘텐츠와 이미지를 사용하여 지도를 맞춤설정합니다.
    • ...

-끝-

'빅브로 들' 카테고리의 다른 글

firebase  (0) 2020.12.02
instagram  (0) 2020.11.18
NCP, N-Devs, K-Devs, ...  (0) 2020.09.13
Youtube Data API (+ Live Streaming API)  (0) 2020.05.21
Google Apis 및 서비스 (with OAuth)  (0) 2020.05.21

+ Recent posts