GEOCODING & SEARCH
REST
Android
iOS
DIRECTIONS & NAVIGATION
REST
JavaScript
Android
iOS
POSITIONING
Overview
ILP SDKs

Class: GSSDirectionsService

GSSDirectionsService(accessToken)

This class invokes the direction service and parses results to GSSDirectionsResponse.

Constructor

new GSSDirectionsService(accessToken)

Parameters:
Name Type Description
accessToken String

The API Key to be sent for authorizing request.

Example

GSSDirectionsService instantiation.

var directionsService = new gssdirections.GSSDirectionsService(<YOUR_API_KEY_HERE>);

Methods

getRoute(gssDirectionsRequest, successHandler, errorHandler)

Issue a directions search request between origin and destination.

Parameters:
Name Type Description
gssDirectionsRequest GSSDirectionsRequest

The request object

successHandler callback

function(GSSDirectionsResponse)

errorHandler callback

function(xhr)