Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Rest API sample - OpenCage Geocoder

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

Setup

Install

  • Clone the project
  • Go to the warp-samples/opencage-geocoder directory
  • Run the following commands:
# install deps
$ npm install

# login to ScaleDynamics
$ npx warp login

Get your Opencage Geocode API key

Run

# run a dev server
$ npm run dev

# build and deploy to production
$ npm run build
$ npm run deploy

Resources