Skip to content

Instantly share code, notes, and snippets.

View Shumai-tec's full-sized avatar

Shumai-tec

  • Joined Sep 30, 2025
View GitHub Profile
class GPSExtension {
constructor() {
this.latitude = 'まだ取得してません';
this.longitude = 'まだ取得してません';
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition((pos) => {
this.latitude = pos.coords.latitude;
this.longitude = pos.coords.longitude;
}, (err) => {