# opencage-api-client examples

### Browser

This example shows how to use the library within a vanilla javascript application.

[browser.html](./browser.html)

### Node

This example shows how to use the library with NodeJS using a environnement variable for the API key

[node.js](./node.js)

### Node with Proxy URL

This example shows how to use the library with NodeJS using a proxy URL to hide your API key.

[node-with-proxy-url.js](./node-with-proxy-url.js)

- AWS Lambda proxy example: https://github.com/tsamaya/opencage-lambda-proxy
- Google Cloud Function example: https://github.com/tsamaya/gcloud-functions-opencage-geocoder

### More reverse geocoding examples

Following a github issue (question) here are some more examples of reverse geocoding operations.

[more-reverse-geocoding.js](./more-reverse-geocoding.js)

### Typescript

This example shos how to use the library with TypeScript

[typescript.ts](./typescript.ts)

The complete example can be found here : https://github.com/tsamaya/opencage-api-client-typescript-test
