Free up to 1MM monthly messages. No credit card required.
With any connected car, navigation, or tracking and dispatch application, the real-time monitoring of vehicle location is key. You want to see where that vehicle is, and want to see that vehicle move across a map as it is in real life.
The real-time vehicle tracking and movement is possible because of real-time data streams. Connected applications are streaming location data in JSON, and that JSON message is parsed and displayed on the map. For the most accurate tracking applications, new location data is sent every second, creating a smooth movement on the map.
Dealing with maps can be a pain, especially when you add animations and real-time data. But using EON and Mapbox, this tutorial will provide an easy to use, animated, real-time solution for tracking connected devices and users on a map.
EON Maps is a standalone library that includes the Mapbox assets. You supply an array of geolocation lat/longs and the map renders markers in those locations.
When you publish a new set of lat/longs, the map animates the transition from the last location to the new location. The library is time sensitive, meaning speed is accurately animated between keyframes.
Here’s a short example of animating a single marker across the United States.
Here’s what the code looks like:
The EON Map library support multiple positions, custom marker styles, and even the ability to follow a designated marker as it animates.
That’s all for this quick tutorial on building real-time vehicle tracking maps. For more in depth guide to EON, check out the video below, or read more on the EON project overview page.
A roundtable discussion led by PubNub’s COO, Casey Clegg, exploring the topics of what it means to be human in a virtual world.
Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...
Today, we are glad to announce that we are currently in the process of implementing ISO-27001 security standards.