Getting Set Up

Approximate time: 1-2 mins

  1. Sign up for a free TallyGo account to get an SDK Access Token.
  2. Add the following to the scripts to your HTML:
    <link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.51.0/mapbox-gl.css" rel="stylesheet" />
    <script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.51.0/mapbox-gl.js"></script>
    <script src="https://unpkg.com/tallygo-js@1.0.2/dist/tallygo.min.js"></script>
  3. Then add the following inside the <body> tag:
    <div id="tallygo-map"></div>
  4. Configure the TallyGo-JS API wrapper with your Access Token: (sent to you via email, or log in to see it here):
    const tallygo = TallyGo.configure({apiKey: 'YOUR_SDK_ACCESS_TOKEN'})
  1. Sign up for a free TallyGo account to get an SDK Access Token.
  2. Inside your node.js application directory:
    npm install tallygo-js
    or
    yarn add tallygo-js
  3. Require tallygo-js in your application code:
    const TallyGo = require('tallygo-js')
  4. Configure the TallyGo-JS API wrapper with your Access Token: (sent to you via email, or log in to see it here):
    const tallygo = TallyGo.configure({apiKey: 'YOUR_SDK_ACCESS_TOKEN'})