This is used to set up Reftown for calculating precise driving distances related to assignments.
Logging Into a Google Cloud Account
- Go to the Google Cloud Console
- If you do not have an Account,
- Click the "Create account" link.
- Fill out the form to create an account with Google (below are the approximate steps which may vary as Google updates things)
- Enter your email address
- You will be sent a code to proceed.
- Enter the code
- Complete the signup process, creating a password
- Reftown will NEVER need that password.
- Agree to their Privacy and Terms (a couple of times)
- If you have an Account
- You may be asked to create a payment profile in the event you go over the free levels
- Each account will include a number of free accesses per month. Most organizations will not individually exceed those limits..
- On the "Welcome" screen, click "Skip for now"
Creating a Google Cloud API Key for Embedded Maps
After logging into the Google account as described above, execute the following steps to enable the API create your Google Maps key.
- Click on the menu at the top left and choose "APIs & Services" -> "Enabled APIs &* services"
- Look for "Maps JavaScriptAPI".
- If you do not have the "Maps JavaScriptAPI":
- Click on "+ Enable APIs and services" (at the top in blue).
- At the top, in the search box, type in "Maps JavaScript"
- Click on "Maps JavaScript API"
- Click "Enable" (if you see "Manage, it is already enabled)
- Click on the menu at the top left and choose "APIs & Services" -> "Credentials"
- Click "+Create credentials"
- Click "API key"
- You will be shown your key here. You can copy/paste this into Reftown now or later)
- Click "Close"
- In the list of API keys, click the dots on the right for the key just created and choose "Edit Key"
- At the top, change the name to something like "Reftown Embedded Maps"
(the following restrictions are optional but protect your account from unauthorized use)
- Under "Application Restrictions", click "Websites"
- Under "Website restrictions" (which will appear after the above step), click "+ Add" (in blue)
- Under "Website restrictions" (which will appear after the above step), click "+ Add" (in blue) (again)
- Click "Save" (blue at the bottom)
- Click "Show Key" for this API key (blue on the right)
- A window will open where you can copy the key to your clipboard
Applying the Key for Use on Reftown.
After creating the API key on the Google Cloud Console, you will then need to copy the key and paste it into the Reftown configuration pages.
- First, go to the Google Cloud Console pages as mentioned above.
- Copy the key by selecting the entire key and pressing Ctrl-C or by clicking the copy icon
- Navigate, on Reftown, to Admin -> Configuration, ASSIGNMENTS, Limits
- Paste the key copied above into the setting called "Google API Key: Embedded Maps"
- Click Update
GOOGLE COSTS!!
Google charges based on the number of routes calculated in a month and the number of embedded maps loaded.
Each account gets a free allotment before any charges accrue. (These payments are directly to Google, not Reftown)
Embedded maps showing the locations of games/officials cost if you go beyond the free allotment, which is probably unlikely to occur:
- For embedded maps
- you get 10,000 free maps per month.
- you pay $7.00 for every 1,000 map loads 10,000 to 100,000 maps
- you pay $5.60 for every 1,000 map loads from 100,001 to to 500,000 maps
- you pay $4.20 for every 1,000 map loads from 500,000 to to 1,000,000 maps
- In the Default Routing (LOW) accuracy mode
- you get 10,000 free routes per month.
- you pay $5.00 for every 1,000 routes you look up from 10,000 to 100,000 routes
- you pay $4.00 for every 1,000 routes you look up from 100,001 to to 500,000 routes
- you pay $3.00 for every 1,000 routes you look up from 500,000 to to 1,000,000 routes
- In the HIGH Routing accuracy mode (which is based on 5:00pm departures), the number of free routes is cut in half and the cost per route above the free level is doubled.
- you get 5,000 free routes per month.
- you pay $10.00 for every 1,000 routes you look up from 10,000 to 100,000 routes
- you pay $8.00 for every 1,000 routes you look up from 100,000 to to 500,000 routes
- you pay $6.00 for every 1,000 routes you look up from 500,000 to to 1,000,000 routes
In general, Reftown, in order to limit unnecessary calculations, will only request distance calculations between officials and locations in your account that have games.
- If you add a new official (or an official changes his/her address) and have 100 locations with games, that will consume 100 routes.
- If you add a game at a location not previously used and have 200 officials, that will consume 200 routes.
- If you add a new official but have no locations with games at that time, that will consume 0 routes...routes will be calculated later as games are added.
- Each night, Reftown runs a process to check for any official to location routes that need to be calculated.
Only larger organizations with hundreds of officials are likely to go beyond the free threshold.