Javascript
LowyNBK edited this page Jan 9, 2020
·
1 revision
getCurrentPosition()
<script>
function lwLogGeo() {
navigator.geolocation.getCurrentPosition(lwGetGeoLocation);
}
function lwGetGeoLocation(position) {
var geo_text = "Latitude:" + position.coords.latitude + "\n";
geo_text += "Logitude:" + position.coords.longitude + "\n";
geo_text += "Altitude:" + position.coords.altitude + "\n";
geo_text += "Accracy:" + position.coords.accuracy + "\n";
geo_text += "AltitudeAccuracy:" + position.coords.altitudeAccuracy + "\n";
geo_text += "Direction:" + position.coords.heading + "\n";
geo_text += "Speed:" + position.coords.speed + "\n";
var date = new Date(position.timestamp);
geo_text += "LogTime:" + date.toLocaleString() + "\n";
console.log(geo_text);
}
</script>
watchPosition()
<script>
var num = 0;
var watch_id;
function lwSetGeotoHtml() {
watch_id = navigator.geolocation.watchPosition(lwGetGeoToHTML, function(e) { alert(e.message); }, {"enableHighAccuracy": true, "timeout": 20000, "maximumAge": 2000});
}
function clear() {
navigator.geolocation.clearWatch(watch_id);
}
function lwGetGeoToHTML(position, lblElem) {
var geo_text = "Latitude:" + position.coords.latitude + "\n";
geo_text += "Logitude:" + position.coords.longitude + "\n";
geo_text += "Altitude:" + position.coords.altitude + "\n";
geo_text += "Accracy:" + position.coords.accuracy + "\n";
geo_text += "AltitudeAccuracy:" + position.coords.altitudeAccuracy + "\n";
geo_text += "Direction:" + position.coords.heading + "\n";
geo_text += "Speed:" + position.coords.speed + "\n";
var date = new Date(position.timestamp);
geo_text += "LogTime:" + date.toLocaleString() + "\n";
geo_text += "Count:" + (++num) + "\n";
document.getElementById(lblElem).innerHTML = geo_text;
}
</script>
- KB wiki is multi-lingual writing. If you want translate to your language, use google translate!
- Go to giip service Page : http://giipweb.littleworld.net
- Documentation : https://github.com/LowyShin/giip/wiki
- Sample automation scripts : https://github.com/LowyShin/giip/tree/gh-pages/giipscripts
See more : https://github.com/LowyShin/giip/wiki
- Token exchanges : https://tokenjar.io/GIIP
- Token exchanges manual : https://www.slideshare.net/LowyShin/giipentokenjario-giip-token-trade-manual-20190416-141149519
- GIIP Token Etherscan : https://etherscan.io/token/0x33be026eff080859eb9dfff6029232b094732c52
If you want get GIIP, contact us any time!
- LowyWorkEnv : https://github.com/LowyShin/Lowyworkenv/wiki
- CLoud RDBMS比較
- MachineLearning
- SQL Server
- ORACLE
- MySQL
- mariadh
- Redis with MySQL
- Mongodb
- Apache-Drill
- A5MK2-MultiDBMSTool
- BI
- Referrals
- Juliaの自動微分パッケージ Zygote の紹介
- color code table
- Canva - free Online Design tool
- vscode
- git(github)
- GoogleSheet
- UiPath(RPA)
- WinAutomation(official)
- Excel
- VNC
- VPN
- Note Tool
- Blog
- google news alert
- Online PDF to JPG
- LoadTest " putty
- Shell/bash
- crontab
- PowerShell
- Windows(DOS) batch
- Wscript/wsf
- AWS
- Azure
- File Sync(rsync, scp...)
- KnownPort(wikipedia)
- CentOS(Linux)
- Windows10
- Android