Flow That the GetInlineRoute Method Uses

The GetInlineRoute method uses the following flow:

  1. Makes sure the Web template file includes a map div element.

  2. Calls the LoadAPI method.

  3. Dynamically loads the Google map method. The Google map method is not downloadable so it dynamically loads the map method when it initializes the JQMMapCtrl class.

  4. Calls the LoadMap method.

  5. Removes all markers, overlays, and services from the map div element.

  6. Creates a Google map in the div element. It uses the div element that it created in the Web template. It uses the google-ui-map plug-in to create this element in Step 4.

  7. It sends the name of the jqmMapCtrl div element to the plug-in to draw the map.

    Uses the getCurrentPosition method to get the current geocode of the client device. This method is available through the navigator.geolocation object. A geocode is an object that stores the geographic coordinates of a location expressed as latitude and longitude.

  8. Displays the GPS geocode of the current position. It does this only if the browser supports GPS (Global Positioning System). If the browser does not support GPS, or if GPS is not available, then Siebel Open UI sets the current location to Oracle headquarters at 500 Oracle Parkway, Redwood Shores, CA 94065. The following browsers support GPS:

    • Internet Explorer version 9.0

    • Firefox version 3.5

    • Chrome version 5.0

    • Safari version 5.0

    • Opera version 10.60

  9. Calls the GetAcctDirections method. It uses the following arguments of the GetAcctDirections method during this call:

    • mapCanvas. Identifies the div element where Siebel Open UI draws the map.

    • currentLocation. Identifies the device GPS location. If the browser does not support GPS or if GPS is not available, then it uses the Oracle headquarters address.

    • acctDestination. Identifies the postal code or address from the account, contact or opportunity record.

  10. Draws the route from the currentLocation to acctDestination, for example, as shown in the following image.

    Route from the currentLocation to acctDestination: This image is described in the surrounding text.