JavaScript SDK Overview

Overview

The JavaScript® Software Development Kit (SDK) consists of Maps Application Programming Interface (API) and Directions API. It provides a rich set of programming interfaces to build mapping and routing in the web applications. Combined with geocoding and search (RESTful) services, the SDK enables developers to add location-based features with limited effort and speed up the development cycle.

The SDK source code including various sample apps, is available to download at: https://git.location.studio/location.studio/JSSDK/tree/master

The major functions of the SDK are highlighted in the following sections.

Mapping

The APIs provide mapping related functions to display and interact with street maps, icons, images, polylines and polygons on the map. The major API functions include:

  • Geographical mapping techniques

    • Geographic features and road networks

    • Overlay icon, image, or geometric objects such as polyline, polygon on the map

    • Touch gestures including zoom, pan, pinch, tilt, rotate, etc.

  • Custom layers

    • Real-time traffic flow

    • Satellite overlay

  • Multiple data sources: TOSM, HERE, TomTom

  • Map data availability in multiple countries

Routing

The APIs provide the ability to request and receive route based on options. The route information includes the route segment and maneuvers within the segment.

  • Routes for different types of transportation: car, truck, and pedestrian

  • Alternative routes based on user preferences

  • Overlay route polyline on map

  • Multiple languages and countries supported

Supported Browsers

The JavaScript SDK is built specifically for modern browsers that support HTML5 on desktop as well as mobile environments.

The following table lists various browsers and environments supported in the JavaScript SDK.

Table 1. Browsers Supported in JavaScript SDK
Browser Environment

Google Chrome® 74+

Windows OS/Desktop

Mozilla Firefox® 67+

Windows OS/Desktop

Internet Explorer® 10–11

Windows OS/Desktop

Microsoft Edge®

Windows OS/Desktop

Modules in the JavaScript SDK

The JavaScript SDK contains the following modules.

Table 2. Modules in the JavaScript SDK
Module Name Description

maps (gssmaps.min.js)

This module contains all map related functions listed in Mapping.

Routing (gssdirections.min.js

This module contains all the functions listed in Routing.

Search and Geocoding services (RESTful APIs)

Comtech Location Studio® Geo Suite APIs provide services for place and address search, forward geocoding, and reverse geocoding. The details can be found at: https://developer.location.studio/site/docs/geoservice/index.gsp.