# @types/react-geocode

> TypeScript definitions for react-geocode

Latest version **0.2.5** (published 2025-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-geocode
pnpm add @types/react-geocode
yarn add @types/react-geocode
bun add @types/react-geocode
```

## Health

**Score 65/100 (B)** — status: stable.

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

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

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2025-11-11 |
| First published | 2020-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.2.5 (latest) — 2025-11-11
- 0.2.4 (ts4.5) — 2023-11-07
- 0.2.1 (ts4.0) — 2022-06-21
- 0.2.0 (ts2.8) — 2020-04-27
- 0.2.3 — 2023-10-18
- 0.2.2 — 2023-09-27

## README

# Installation
> `npm install --save @types/react-geocode`

# Summary
This package contains type definitions for react-geocode (https://github.com/shukerullah/react-geocode).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-geocode.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-geocode/index.d.ts)
````ts
export function fromAddress(address: string, apiKey?: string, language?: string, region?: string): Promise<any>;
export function fromLatLng(
    latitude: string,
    longitude: string,
    apiKey?: string,
    language?: string,
    region?: string,
): Promise<any>;
export function setApiKey(api_key: string): void;
export function setLanguage(language: string): void;
export function enableDebug(enable?: boolean): void;
export function setRegion(region: string): void;
export function setLocationType(location_type: string): void;

````

### Additional Details
 * Last updated: Tue, 11 Nov 2025 20:35:44 GMT
 * Dependencies: none

# Credits
These definitions were written by .

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