opencage-api-client

opencage-api-client examples

Browser

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

browser.html

Node

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

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

More reverse geocoding examples

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

more-reverse-geocoding.js

Typescript

This example shos how to use the library with TypeScript

typescript.ts

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