appinfo.getAddressDetail - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.appinfo.getAddressDetail
API μ€λͺ
- μ°λ¦¬μ§ μμΈ μ£Όμ μ‘°ν API
- GiGA Genie μ μ€μ λ μ°λ¦¬μ§ μμΈ μ£Όμλ₯Ό μ‘°νν¨
- μ°λ¦¬μ§ μ£Όμλ Companion App μμ μ€μ ν μ£Όμ μ 보μ
- userinfo κΆνμ΄ μλ appid λ§ νΈμΆ κ°λ₯
API ꡬ쑰
- function getAddressDetail(options,callback)
options
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.");
}
});