-
Notifications
You must be signed in to change notification settings - Fork 6
appinfo.getAddressDetail
ServiceSDK edited this page Jan 4, 2021
·
3 revisions
- 우리집 상세 주소 조회 API
- GiGA Genie 에 설정된 우리집 상세 주소를 조회함
- 우리집 주소는 Companion App 에서 설정한 주소 정보임
- userinfo 권한이 있는 appid 만 호출 가능
- function getAddressDetail(options,callback)
-
options
- null
-
result_cd
-
200
: 성공 -
404
: 저장된 주소값 없음 -
500
: 시스템 Error
-
-
extra
-
address
: (String) 우리집 주소로 설정된 주소 -
subaddress
: (String) 상세 주소이며 없을 경우 미전달 -
gpsX
: (String) WGS84 경도 좌표 -
gpsY
: (String) WGS84 위도 좌표 -
posX
: (String) GRS80(UTM-K) 경도 좌표 -
posY
: (String) GRS80(UTM-K) 위도 좌표
-
// callback 방식
gigagenie.appinfo.getAddress(null, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
var address = extra.address;
var subaddress = extra.subaddress;
console.log("GiGA Genie Home Address = " + address + " " + subaddress);
console.log("WGS84 X:" + extra.gpsX + " WGS84 Y:" + extra.gpsY);
console.log("GRS80 X:" + extra.posX + " GRS80 Y:" + extra.posY);
} else if (result_cd === 404) {
var address = extra.address;
console.log("Address is not found");
} else {
console.log("Getting Home Address fail.");
}
});
Copyright ⓒ 2017-2023 kt corp. All rights reserved.
- 개요
- 일반사항
- 참고사항
- 통합개발환경
- Appendix
- 기가지니 웹앱 로그 관리 가이드
- API 전체 보기
-
API초기화
- gigagenie.init
- gigagenie.init.changeContainerId
- gigagenie.init.onAppStatusChange
gigagenie.init.startBgActiongigagenie.init.stopBgActiongigagenie.init.checkBgActiongigagenie.init.startFgActiongigagenie.init.stopFgActiongigagenie.init.checkFgActiongigagenie.init.fgCallgigagenie.init.onFgCallgigagenie.init.bgCallgigagenie.init.onBgCall- gigagenie.init.runApp
-
Voice API
- voice.getVoiceText
- voice.sendTTS
- voice.onVoiceCommand
- voice.setKwsVoiceRecv
- voice.onSelectedIndex
- voice.onRequestClose
- voice.svcFinished
- voice.onActionEvent
- voice.stopTTS
- voice.setVoiceFilter
- voice.resetVoiceFilter
- voice.onVoiceFilterMsg
- voice.onRegToneResults
- voice.setVoiceRecogDomain
- voice.onVocDomainTimeout
- Call API
- 데이터 관리
- G-Box 정보 관리 API
-
Media API
- media.onMuteRequest
- media.showSoftKeyboard
- media.onRemoteKeyEvent
- media.startRecordAudio
- media.onVoiceRecordComplete
- media.stopRecordAudio
- media.createChannel
- media.destroyChannel
- media.startWebRTCAudio
- media.stopWebRTCAudio
- media.keepaliveChannel
- media.onChannelEvent
- media.getOTVChannel
- media.setOTVChannel
- media.sendMsgToOTVWebApp
- media.onOTVWebAppMsg
- media.onSoftKeyEvent
- Payment API
- Vision API
- 통계 API
- Admin API