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
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.
Quick Start Guide
Get up and running with the Lattis-Nexus platform in minutes with our step-by-step quickstart guide.
- API key setup
- Basic authentication
- Your first API call
Maps Integration
Create interactive maps with vehicle markers, heat maps, geofencing, and real-time updates.
Read GuideNavigation & Routing
Implement turn-by-turn directions, traffic-aware routing, and multi-stop optimization.
Read GuideVehicle Tracking
Real-time fleet tracking with telemetry integration, geofencing, and status monitoring.
Read GuideAuthentication & Security
Implement OAuth 2.0, JWT tokens, and role-based access controls in your applications.
Read GuideAnalytics & Reporting
Build data-driven dashboards with historical trends, usage patterns, and predictive insights.
Read GuideReal-time Data
Implement WebSockets and server-sent events for real-time vehicle tracking and updates.
Read GuideMobile SDK Integration
Build location-aware mobile apps for both drivers and fleet managers.
Read GuideAdditional Resources
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.
OAuth 2.0 Authentication
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
Headers
Request Body
{
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"grant_type": "client_credentials",
"scope": "maps vehicles routes:read analytics:read"
}
Response
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "bearer",
"expires_in": 3600,
"scope": "maps vehicles routes:read analytics:read",
"refresh_token": "def502..."
}
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
Integrate Lattis-Nexus into your web applications with our JavaScript SDK.
npm install @lattis-nexus/sdk
Android SDK
Build location-aware Android applications with our native SDK.
implementation 'com.lattisnexus:sdk:1.9.2'
iOS SDK
Integrate Lattis-Nexus into your iOS applications with our Swift SDK.
pod 'LattisNexusSDK', '~> 1.8.3'
Python SDK
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.
Multi-Stop Route Optimizer
Optimize routes with multiple stops for efficient deliveries.
Fleet Analytics Dashboard
Build a comprehensive analytics dashboard for fleet performance.
Geofence Alerts
Implement geofence-based alerts for vehicle monitoring.
Mobile Driver App
Create a mobile application for drivers with navigation.
Address Autocomplete
Implement address search with autocomplete functionality.
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"
}
Response
{
"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
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');
});
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 DashboardVerify 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 ToolDeveloper 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 CommunityOffice Hours
Schedule time with our engineers for dedicated assistance with your integration.
Book Session