Skip to content

Creating a map workflow in orange

This is a tutorial meant for someone who hasn't used orange at all to create a very simple, but powerful, workflow that has some geographical data.


Look for the kit that you want to use

We're starting from a new file, a white canvas for this example.

To start using it we need to click on it in the widgets menu on the left for the widget of Smart Citizen Search. We select the Smart Citizen Search widget from the MECODA extension.

It will create the widget on the canvas on the right

If you click on it it will pop up a window with the available options

We need to press "Search devices" in order to get some data.

Here you can try to find your Kit. There are several options to retrieve this information but in this case we have the URL of our kit

This URL tells us the Device ID that we want at the end of the URL (in this case 14471).

Using the map?

If you want to use the map to find your kit follow this instructions.

Go to

Find your kit in the map and select it.

For example:

When you select it the URL of the site will change, in this case to:

Here you have the device id in the URL at the end. In this case it's 15618.

Once we have it we type it or paste it in Device ID and press "Search Devices"

It will tell us that we have just one data because the icon of exit says that there is only one data.

Now that we have only just one device we need to retrieve the data that is stored in it.

Get the data from the kit

Now we need to add another widget from the tools that we have on the left. To do that we click ond the widget Smart Citizen Data

When we press it it will be set in the canvas near the other widget of Smart Citizen Search that we have already configured.

We need to connect both of them pressing the dotted lines on the right of the Smart Cizizen Search and dragging the cursor into the Smart Citizen Data. Once you have it would look like this:

To see if everything is correct we can click on Smart Citizen Data and we can click on it and check it out

If the Info panel from the image above says the same that yours it will mean that it's working.

Now we're setting up the data that we want to collect. In this example we're getting all the data, so we can leave it as it is and just press Get data to fetch the data.

It will take some seconds to fetch the data from the back end of smart citizen and it will have in the Info panel "Device 14471 data downloaded!"

See the data in a table

The next step we can look at it as a table. To do that we need to use the widget Data table from the left menu in "Data"

We click on it as we have clicked on other widgets and it will appear on the canvas

We connect it to the Smart Citizen Data dragging the data from the Smart Citizen Data to the Data Table like this:

If we open it we'll see the data that we have gathered clicking on it. If we scroll to the right using the scroll at the bottom we'll see that we have a column with Latitude and other with Longitude

The Data tables have more propierties that are explained here:

Now we add one more widget to print this data in a map.

Create the map using Geo Map widget

Now we go to the panel on the left that says "Geo" and we click on Geo Map to add the Geo Map widget.

It will look like this

As we have done before, we connect the data table into the Geo Map dragging from the right of the data table (the output) to the left of the geo map (the input)

We can open it and we'll see something like this

In this case we can see the timing of different samples in colour being the bluest the oldest and the most yellow the newest.

We can adjust ussing the attributes on the left part of the GUI to see where are the places with, i.e more temperature.

All the data that doesn't have latitude and longitude is ignored by default