Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created March 16, 2017 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/99379235de41a5708c200ec4a9c288f4 to your computer and use it in GitHub Desktop.
Save justinyoo/99379235de41a5708c200ec4a9c288f4 to your computer and use it in GitHub Desktop.
Getting Geolocation on Mobile Devices using Vue.js + TypeScript + ASP.NET Core
class GpsPositionOptions implements PositionOptions {
public constructor (enableHighAccuracy?: boolean, timeout?: number, maximumAge?: number) {
this.enableHighAccuracy = enableHighAccuracy;
this.timeout = timeout;
this.maximumAge = maximumAge;
}
public enableHighAccuracy?: boolean;
public timeout?: number;
public maximumAge?: number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment