Skip to content
Maciej Mionskowski edited this page May 29, 2017 · 3 revisions

The Route4Me telematics gateway allows you to integrate data from third party telematics systems through the “Vehicles” section of your Route4Me account. Vehicles from connected third-party systems are automatically imported and re-synchronized into the account of the corresponding Route4Me user. Each Route4Me vehicle can then be “linked” to a vehicle that is external to Route4Me.When tracking data is captured from a 3rd party system, then data sent to Route4Me is evaluated to determine which vehicle (by ID) is associated with this connected vehicle ID. The last-known active route for the corresponding Route4Me vehicle ID is identified, and tracking data is appended into this route’s tracking history.

Creating Service

import (
	"github.com/route4me/route4me-go-sdk"
	"github.com/route4me/route4me-go-sdk/telematics"
)

func main() {
	service := telematics.NewTelematicsService("your-api-key")
}

Get All Vendors

GET all telematics vendors

import (
	"github.com/route4me/route4me-go-sdk"
	"github.com/route4me/route4me-go-sdk/telematics"
)

func main() {
	client := route4me.NewClient("your-api-key")
	service := &telematics.Service{Client: client}
	vendors, err := service.GetVendors()
	if err != nil {
		//handle error
	}
	//do something with the response
}

Get Vendor By ID

GET a telematics vendor.

import (
	"github.com/route4me/route4me-go-sdk"
	"github.com/route4me/route4me-go-sdk/telematics"
)

func main() {
	client := route4me.NewClient("your-api-key")
	service := &telematics.Service{Client: client}
	vendor, err := service.GetVendor(`vendor-id`)
	if err != nil {
		//handle error
	}
	//do something with the response
}

Compare Vendors

Compares Vendors

import (
	"github.com/route4me/route4me-go-sdk"
	"github.com/route4me/route4me-go-sdk/telematics"
)

func main() {
	client := route4me.NewClient("your-api-key")
	service := &telematics.Service{Client: client}
	vendors, err := service.CompareVendors(`vendor-id`,`vendor-id-2`,...)
	if err != nil {
		//handle error
	}
	//do something with the response
}

Search Vendors

Search through all vendors

import (
	"github.com/route4me/route4me-go-sdk"
	"github.com/route4me/route4me-go-sdk/telematics"
)

func main() {
	client := route4me.NewClient("your-api-key")
	service := &telematics.Service{Client: client}
	vendors, err := service.SearchVendors(&VendorQuery{
		Integrated: true,
		Feature:    "Satellite",
		Country:    "GB",
	})
	if err != nil {
		//handle error
	}
	//do something with the response
}