# @types/google.geolocation

> TypeScript definitions for google.geolocation

Latest version **0.4.35** (published 2024-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/google.geolocation
pnpm add @types/google.geolocation
yarn add @types/google.geolocation
bun add @types/google.geolocation
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.4.35 |
| Published | 2024-01-30 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/google.geolocation
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google.geolocation
- npm.io page: https://npm.io/package/@types/google.geolocation

## Recent versions

- 0.4.35 (latest) — 2024-01-30
- 0.4.34 (ts4.5) — 2023-11-07
- 0.4.31 (ts4.1) — 2020-09-16
- 0.4.30 (ts3.0) — 2020-05-15
- 0.4.29 (ts2.0) — 2017-08-21
- 0.4.33 — 2023-10-18
- 0.4.32 — 2023-09-20
- 0.4.28 — 2016-09-19
- 0.4.27 — 2016-07-14
- 0.4.26-alpha — 2016-07-08
- 0.4.25-alpha — 2016-07-04
- 0.4.24-alpha — 2016-07-02
- 0.4.23-alpha — 2016-07-01
- 0.4.22-alpha — 2016-07-01
- 0.4.21-alpha — 2016-05-25
- … 3 more at https://npm.io/package/@types/google.geolocation/versions

## README

# Installation
> `npm install --save @types/google.geolocation`

# Summary
This package contains type definitions for google.geolocation (https://code.google.com/p/geo-location-javascript/).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google.geolocation.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google.geolocation/index.d.ts)
````ts
interface GeolocationStatic {
    init(): boolean;
    getCurrentPosition(
        success: (position: GeolocationPosition) => void,
        error?: (positionError: GeolocationPositionError) => void,
        opts?: PositionOptions,
    ): void;
    showMap(latitude: number, longitude: number): void;
}

declare var geo_position_js: GeolocationStatic;

````

### Additional Details
 * Last updated: Tue, 30 Jan 2024 21:35:45 GMT
 * Dependencies: none

# Credits
These definitions were written by [Vincent Bortone](https://github.com/vbortone).

---
_Source: https://npm.io/package/@types/google.geolocation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
