Google Maps Signature
Signs Google Maps requests. Works with both general and Google Maps for Work.
Installation
With npm...
npm install --save gmaps-signature
Usage
// Load the modulevar GS = ; // Add your Google Maps keyGSGOOGLE_API_KEY = 'MY KEY';// Or for Google Maps API for WorkGSGMAPS_CLIENT_ID = 'MY CLIENT ID';GSGMAPS_PRIVATE_KEY = 'MY PRIVATE KEY'; // and then you can start signing urls...var url = GS;
Env variables
You can also set the required keys using env variables. Like so:
GOOGLE_API_KEY=THIS_IS_MY_KEY node .
GMAPS_CLIENT_ID=THIS_IS_MY_ID GMAPS_PRIVATE_KEY=THIS_IS_MY_PK node .