MapQuest for Viewing Maps 2.0

The MapQuest bjs file is needed for both 1.6.4 and 2.0.0 MapQuest mapping, located here.

These instructions are for 2.0. For 1.6.4 instructions, please go to Manitou - BoldTrak - MapQuest for Viewing Maps 1.6.4

Sign up for MapQuest

  1. To install MapQuest as the mapping please navigate the end user to MapQuest's Developer Central for getting their own API key. Select the free plan unless a larger plan is needed.

    1. https://developer.mapquest.com/plans

  2. Once the customer has signed up and logged in, have them send you their generated API key.

    • One is created automatically after signup, the key can be located at https://developer.mapquest.com/user/me/apps

    • The key needed is the consumer key, which will look like the following from the MapQuest developer central.

SQL Changes Required

These SQL changes include the changes needed for location services to function.

  1. Login to Microsoft SQL Server Management Studio on the primary server.

    • Run the following script, and make sure to read it before to understand what is going on.

    • If there are any failures or issues post the change, please restore the database 

----------------------------------------------
-- This script is for putting MapQuest in	--
-- place for the VB Client on a 2.0 system.	--
--											--
-- Please read through the script first to	--
-- understand what is being done.			--
----------------------------------------------

USE MANITOU

----------------------------------------------
-- Select what will be edited first. Run	--
-- this separately to see the date that		--
-- will be edited.							--
----------------------------------------------

/*

SELECT * FROM MOPTIONS WHERE OPTIONNO = 136;
SELECT * FROM DRIVERS WHERE DTYPE = 1;

*/

----------------------------------------------
-- Create table backups						--
----------------------------------------------
SELECT * INTO MOPTIONSBAK
FROM MOPTIONS;

SELECT * INTO DRIVERSBAK
FROM DRIVERS;

----------------------------------------------
-- Make the changes necessary in Manitou	--
-- for Google and Bing to be removed, and	--
-- for MapQuest to be added instead.		--
----------------------------------------------

--Change BoldTrak to MapQuest
UPDATE MOPTIONS
	SET OPTCHAR = 'MAPQUEST'
	WHERE OPTIONNO = 136;

--Add the MapQuest Driver
INSERT INTO DRIVERS (LASTUPD, CREDATE, DTYPE, DCODE, DESCR, ATTR, FILENAME, OPTIONS)
	VALUES (GETDATE(), GETDATE(), '1', '8', 'MapQuest Map', 'A', 'LSProcessor_MapQuest.dll', 'MCntry$1,US|BaseUrl$https://www.mapquestapi.com/geocoding/v1/reverse')

--Remove Google and Bing
IF EXISTS (SELECT * FROM DRIVERS where DCODE = '4')
BEGIN
	DELETE FROM DRIVERS where DCODE = '4'
END

IF EXISTS (SELECT * FROM DRIVERS where DCODE = '5')
BEGIN
	DELETE FROM DRIVERS where DCODE = '5'
END 

Installation of MapQuest

  1. Download the latest MAPQUEST.bjs file and place it on the desktop of the customer's primary manitou server.

  2. Edit the MAPQUEST.bjs (recommended notepad++)

  3. Change both instances of the word MY_KEY to the key provided by the customer.

    • MY_KEY on line 43
      <SCRIPT src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=MY_KEY" type="text/javascript">

    • MY_KEY on line 55
      var g_MY_KEY = "MY_KEY";

    • The edited keys should appear similar to the following but with the customer's API key.

    • Important! Do not change anything additional in the document, any changes could break the integration


  4. Save the MAPQUEST.bjs files and place it in the WebMap folder located in BObject_Files.
    (Typically located in C:\Program Files (x86)\Bold Technologies\Manitou\BObject_Files\WebMap)

  5. Run Import_All.bat from an administrative command prompt.

  6. Open the Supervisor Workstation and navigate to Tools ? Options.

  7. Expand Location/GPS and select Mapping Types

  8. Enter Edit mode and change the Mapping Types to MapQuest Maps and save.

MapQuest is installed and should now be tested by pulling up a map location to see if it is working.



Was this article helpful?
Thank you for your feedback!
User Icon

Thank you! Your comment has been submitted for approval.