Added Google Geolcation

This commit is contained in:
Vincent Bortone
2013-03-06 02:20:35 -05:00
parent 804eb316b6
commit fb91f127d8
3 changed files with 31 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
// Type definitions for Google Geolocation 0.4.8
// Project: https://code.google.com/p/geo-location-javascript/
// Definitions by: Vincent Bortone <https://github.com/vbortone/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface GeolocationStatic {
init(): bool;
getCurrentPosition(success: (position: Position) => void, error?: (positionError: PositionError) => void, opts?: PositionOptions): void;
showMap(latitude: number, longitude: number): void;
}
declare var geo_position_js: GeolocationStatic;