How To Display Waste Containers Sensors Data in Mapify

App development

Monitoring and analytics

October 7, 2024

5

min video

Let’s explore how to display waste container sensor data in Mapify using open data from Santander!

These waste containers come with sensors that track their location, capacity, fullness, and temperature in real time. We’ll work with JSON data provided via URL.

First, we’ll create a Dataset to host the sensor data. Head to the Datasets section in Mapify, create a new Dataset, name it, and select “Point” as the schema type. Add fields like identifier, address, and sensor code to map the necessary data. Save it, and your Dataset is ready!

Next, create a Layer to render the data from your Dataset. Go to Layers, create a new Layer, name it, and select the corresponding Dataset. Now, it’s time to pull in live data. Go to Data Feeds, add a new feed using the URL, and choose HTTP as the provider. Set it to update every 30 seconds and paste the API schema. We’ll use the "resources" array to split the message. Save it, now Mapify is receiving data from the URL every 30 seconds!

To process this incoming data, we’ll create a Workflow, using the Data Feed we just set up as the source. Start by adding a Sink node to update the Mapify Dataset. Name the node and select the corresponding Dataset. Using the JMESPATH EXPRESSION HELPER, we’ll begin mapping the fields. For latitude, it’s message dot “ayto:latitud. Be sure to convert values into numbers where necessary using the "To number" function. Follow the same steps to map fields like longitude, the identifier, and other relevant data points. Once all fields are properly mapped, save your workflow.

After 30 seconds, you’ll see the data coming in. Now you can style your Layer with icons and colors for better visualization. By the end, you’ll have a dynamic map showing different types of waste containers: paper, glass, and organic; all in real-time!

Start your free Mapify trial today and explore the power of real-time data visualization and automation! Sign up now and see how easy it is to manage your sensor data, no coding required.