Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Displaying Vehicle Data with Automatic and Mapbox API (Pt 2)

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
1,298
Language
English
Hacker News Points
-
Summary

This tutorial, the second in a series, guides developers through building a connected car application using the Automatic API and PubNub. It focuses on receiving real-time vehicle data messages and displaying them on a map using the Mapbox API. The tutorial emphasizes the importance of setting up a custom application on Heroku to authorize the use of Automatic's credentials, a process explained in the preceding tutorial. Key changes to the Node.js code include the addition of script-loading capabilities and the use of CoffeeScript, which is transpiled to JavaScript, as well as the expansion of Jade views to simplify the app's structure. The tutorial explains how to initialize PubNub to handle messages from the Automatic Dashboard and provides instructions for simulating events to test the real-time mapping functionality. Ultimately, the tutorial demonstrates how to create a live-event receiver app, showcasing the potential for connected car applications and encouraging exploration of additional features available through PubNub and Internet of Things demos.