This sample shows how to use the OpenCage Geocoder REST API and the ScaleDynamics WarpJS SDK, in particular we are using the API to get the physical address at a specific GPS location.
For more info about the API, refer to https://opencagedata.com/api
👉 Try a live demo
- Clone the project
- Go to the
warp-samples/opencage-geocoderdirectory - Run the following commands:
# install deps
$ npm install
# login to ScaleDynamics
$ npx warp login- Open a free account on https://opencagedata.com, and get your API key
- Open the
server/index.jsfile - Update the
OPENCAGE_API_KEYvalue with yours
# run a dev server
$ npm run dev
# build and deploy to production
$ npm run build
$ npm run deploy