Developer Platform

Build the Future of Fleet Management

Access powerful APIs, comprehensive SDKs, and developer tools to create next-generation mobility applications on the Lattis-Nexus platform

500+ Enterprise Customers
10B+ API Calls Monthly
99.99% Global Uptime

Documentation

Comprehensive guides to help you implement Lattis-Nexus in your applications

Getting Started with Lattis-Nexus

Our platform provides a comprehensive set of tools for building advanced fleet management and mobility applications. Whether you're creating a custom dashboard for vehicle tracking, implementing route optimization, or building a complete fleet management solution, our documentation will guide you through every step.

New Developers

Start here if you're new to the Lattis-Nexus platform

Begin Your Journey

Migration Guide

Moving from another platform? Follow our migration guide

Migrate to Lattis-Nexus

Maps Integration

Create interactive maps with vehicle markers, heat maps, geofencing, and real-time updates.

Read Guide

Navigation & Routing

Implement turn-by-turn directions, traffic-aware routing, and multi-stop optimization.

Read Guide

Vehicle Tracking

Real-time fleet tracking with telemetry integration, geofencing, and status monitoring.

Read Guide

Authentication & Security

Implement OAuth 2.0, JWT tokens, and role-based access controls in your applications.

Read Guide

Analytics & Reporting

Build data-driven dashboards with historical trends, usage patterns, and predictive insights.

Read Guide

Real-time Data

Implement WebSockets and server-sent events for real-time vehicle tracking and updates.

Read Guide

Mobile SDK Integration

Build location-aware mobile apps for both drivers and fleet managers.

Read Guide

API Reference

Comprehensive API documentation for the Lattis-Nexus platform

RESTful APIs for Fleet Management

Our well-documented APIs follow REST principles and provide consistent patterns across all endpoints. Use our APIs to integrate mapping, routing, tracking, and advanced fleet management capabilities into your applications.

150+ Endpoints
99.99% Uptime
<100ms Response Time

OAuth 2.0 Authentication

v2.1

The Authentication API allows you to securely authenticate your applications with the Lattis-Nexus platform using OAuth 2.0 and JWT tokens. This endpoint provides access tokens that must be included in all subsequent API requests.

Base URL

https://api.lattis-nexus.com

Endpoint

POST
/v2/auth/token

Headers

Name
Required
Type
Description
Content-Type
Yes
String
Set to "application/json"
Accept
No
String
Set to "application/json"

Request Body

Name
Required
Type
Description
client_id
Yes
String
Your API client ID
client_secret
Yes
String
Your API client secret
grant_type
Yes
String
Set to "client_credentials"
scope
No
String
Space-separated list of access scopes
{
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET",
  "grant_type": "client_credentials",
  "scope": "maps vehicles routes:read analytics:read"
}

Response

200 OK - Authentication successful
400 Bad Request - Invalid parameters
401 Unauthorized - Invalid credentials
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "bearer",
  "expires_in": 3600,
  "scope": "maps vehicles routes:read analytics:read",
  "refresh_token": "def502..."
}
Field
Type
Description
access_token
String
JWT token to use for API authorization
token_type
String
Always "bearer"
expires_in
Integer
Token validity in seconds
scope
String
Granted scopes, space-separated
refresh_token
String
Token to get a new access token

Code Examples

curl -X POST https://api.lattis-nexus.com/v2/auth/token \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "grant_type": "client_credentials",
    "scope": "maps vehicles routes:read analytics:read"
  }'
const getToken = async () => {
  const response = await fetch('https://api.lattis-nexus.com/v2/auth/token', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      client_id: 'YOUR_CLIENT_ID',
      client_secret: 'YOUR_CLIENT_SECRET',
      grant_type: 'client_credentials',
      scope: 'maps vehicles routes:read analytics:read'
    })
  });

  const data = await response.json();
  
  // Store the token for later use
  localStorage.setItem('accessToken', data.access_token);
  
  return data.access_token;
};
import requests

def get_token():
    response = requests.post(
        'https://api.lattis-nexus.com/v2/auth/token',
        json={
            'client_id': 'YOUR_CLIENT_ID',
            'client_secret': 'YOUR_CLIENT_SECRET',
            'grant_type': 'client_credentials',
            'scope': 'maps vehicles routes:read analytics:read'
        }
    )
    
    data = response.json()
    
    # Store the token for later use
    access_token = data['access_token']
    
    return access_token
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import org.json.JSONObject;

public String getToken() throws Exception {
    HttpClient client = HttpClient.newHttpClient();
    
    JSONObject requestBody = new JSONObject();
    requestBody.put("client_id", "YOUR_CLIENT_ID");
    requestBody.put("client_secret", "YOUR_CLIENT_SECRET");
    requestBody.put("grant_type", "client_credentials");
    requestBody.put("scope", "maps vehicles routes:read analytics:read");
    
    HttpRequest request = HttpRequest.newBuilder()
        .uri(URI.create("https://api.lattis-nexus.com/v2/auth/token"))
        .header("Content-Type", "application/json")
        .POST(HttpRequest.BodyPublishers.ofString(requestBody.toString()))
        .build();
    
    HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString());
    
    JSONObject responseData = new JSONObject(response.body());
    String accessToken = responseData.getString("access_token");
    
    return accessToken;
}
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;

public async Task GetToken()
{
    using (var client = new HttpClient())
    {
        var requestBody = new 
        {
            client_id = "YOUR_CLIENT_ID",
            client_secret = "YOUR_CLIENT_SECRET",
            grant_type = "client_credentials",
            scope = "maps vehicles routes:read analytics:read"
        };
        
        var content = new StringContent(
            JsonSerializer.Serialize(requestBody),
            Encoding.UTF8,
            "application/json"
        );
        
        var response = await client.PostAsync(
            "https://api.lattis-nexus.com/v2/auth/token", 
            content
        );
        
        response.EnsureSuccessStatusCode();
        
        var responseBody = await response.Content.ReadAsStringAsync();
        var tokenResponse = JsonSerializer.Deserialize(responseBody);
        
        return tokenResponse.access_token;
    }
}

public class TokenResponse
{
    public string access_token { get; set; }
    public string token_type { get; set; }
    public int expires_in { get; set; }
    public string scope { get; set; }
    public string refresh_token { get; set; }
}

SDKs

Software Development Kits for seamless integration with Lattis-Nexus

JavaScript SDK

v2.4.0

Integrate Lattis-Nexus into your web applications with our JavaScript SDK.

npm install @lattis-nexus/sdk

Android SDK

v1.9.2

Build location-aware Android applications with our native SDK.

implementation 'com.lattisnexus:sdk:1.9.2'

iOS SDK

v1.8.3

Integrate Lattis-Nexus into your iOS applications with our Swift SDK.

pod 'LattisNexusSDK', '~> 1.8.3'

Python SDK

v1.5.1

Build server-side applications and data processing pipelines with our Python SDK.

pip install lattis-nexus-sdk

Code Examples

Practical examples to help you implement Lattis-Nexus features

Fleet Tracking Map

Display real-time vehicle locations on an interactive map.

JavaScript React Maps API
View Example

Multi-Stop Route Optimizer

Optimize routes with multiple stops for efficient deliveries.

Python Navigation API Optimization
View Example

Fleet Analytics Dashboard

Build a comprehensive analytics dashboard for fleet performance.

JavaScript Vue.js Analytics API
View Example

Geofence Alerts

Implement geofence-based alerts for vehicle monitoring.

JavaScript Node.js Geofence API
View Example

Mobile Driver App

Create a mobile application for drivers with navigation.

React Native Maps API Navigation API
View Example

Address Autocomplete

Implement address search with autocomplete functionality.

JavaScript Search API Geocoding API
View Example

API Playground

Test and experiment with the Lattis-Nexus APIs in an interactive environment

Authentication - Get Token

{
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET",
  "grant_type": "client_credentials",
  "scope": "maps vehicles routes:read analytics:read"
}
Key
Value
Key
Value

No path parameters for this endpoint.

Response

200 OK 234ms
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "bearer",
  "expires_in": 3600,
  "scope": "maps vehicles routes:read analytics:read",
  "refresh_token": "def502..."
}

Webhooks

Receive real-time notifications when events occur in your Lattis-Nexus account

What are Webhooks?

Webhooks allow your application to receive real-time notifications when certain events occur in your Lattis-Nexus account. Instead of constantly polling our APIs to check for updates, you can use webhooks to be notified immediately when something happens.

Real-time Updates

Receive instant notifications when events occur, without polling our APIs.

Reduced API Load

Eliminate the need for frequent API calls to check for changes.

Event-driven Architecture

Build responsive applications that react to events as they happen.

Available Webhook Events

You can subscribe to the following event types:

Vehicle Events

  • vehicle.created
  • vehicle.updated
  • vehicle.deleted
  • vehicle.maintenance_due
  • vehicle.status_changed

Location Events

  • location.updated
  • geofence.entered
  • geofence.exited
  • route.started
  • route.completed

Driver Events

  • driver.created
  • driver.updated
  • driver.deleted
  • driver.assignment_changed
  • driver.activity_changed

Task Events

  • task.created
  • task.updated
  • task.assigned
  • task.started
  • task.completed

Setting Up Webhooks

1

Create a Webhook Endpoint

First, you'll need to create an endpoint on your server to receive webhook events.

// Example Node.js webhook endpoint
app.post('/webhooks/lattis-nexus', (req, res) => {
  const event = req.body;
  
  // Verify webhook signature
  if (!verifyWebhookSignature(req)) {
    return res.status(401).send('Invalid signature');
  }
  
  // Process the event based on type
  switch (event.type) {
    case 'vehicle.status_changed':
      handleVehicleStatusChange(event.data);
      break;
    case 'geofence.entered':
      handleGeofenceEntry(event.data);
      break;
    // Handle other event types
  }
  
  // Acknowledge receipt of the webhook
  res.status(200).send('Webhook received');
});
2

Register Your Webhook URL

Register your webhook URL in the Lattis-Nexus Dashboard and select the events you want to receive.

Open Webhook Settings in Dashboard
3

Verify Webhook Signatures

For security, verify the signature included in each webhook request.

function verifyWebhookSignature(req) {
  const signature = req.headers['lattis-nexus-signature'];
  const timestamp = req.headers['lattis-nexus-timestamp'];
  const payload = req.rawBody; // Raw request body
  
  // Compute expected signature
  const hmac = crypto.createHmac('sha256', WEBHOOK_SECRET);
  const expectedSignature = hmac
    .update(`${timestamp}.${payload}`)
    .digest('hex');
  
  // Compare signatures using a constant-time comparison
  return crypto.timingSafeEqual(
    Buffer.from(signature),
    Buffer.from(expectedSignature)
  );
}

Testing Webhooks

You can use our webhook testing tool to simulate events and ensure your endpoint is properly configured.

Open Webhook Testing Tool

Developer Support

Resources to help you succeed with the Lattis-Nexus platform

Developer Community

Join our community of developers to share knowledge and get help from peers.

Join Community

Technical Support

Submit support tickets and get help from our engineering team.

Contact Support

Office Hours

Schedule time with our engineers for dedicated assistance with your integration.

Book Session

FAQ

Find answers to common questions about using the Lattis-Nexus platform.

View FAQs