New Ethereum talks, every Monday. The week's conference uploads by event, in your inbox.

Loading player…

09 - Swarm One: FairMaps demo by Črt

SwarmSat, Oct 9, 2021, 12:00 AM

Swarm Foundation is proud to announce that Swarm 1.0 is live on mainnet. This special release was celebrated with an online event, Swarm One, where the developer teams will explain everything users need to know about the first mainnet release and what to expect in the future. Join our community: Discord: https://discord.gg/wdghaQsGq5 Twitter: https://twitter.com/ethswarm Website: https://www.ethswarm.org/

Transcript

so that was the demo of ferro s and actually it was a nice segue into into the next demo that we will go into and um as i mentioned the key value store um is what this next demo will use and it will show a front end that displays maps on user screens maps are stored in ferro ssd back end so i would ask the video to play so please know that my narrative might not be completely in sync with the video but so the maps used here are from openstreetmaps so the actual data the application is called fair maps and the user logs in with their credentials and you know that these are the same as later shown or used in the fair drive demos and the default map of the world loads when a certain zoom level is reached the roads legs and other features become visible you will notice that a couple of maps are already available but most of the world is actually blank so no data is available basic features of the map are available like zooming in and zooming out depending on which countries maps are available more detailed map content can be shown but this is not the main point of the demo so the maps that are shown are loaded from ferro s dfs key value store which is underneath using swarm storage um so the location of any pins you put on the map map gets saved into ferro s to be used later and perhaps in another application given access to the data adding pins and saving the data to ferro s is just a basic use case demonstrating the idea of a common storage accessible to many applications imagine any kind of user data that you would like to share with others like running traps tracks trips you took photos you took at locations etc so how can you spin up your own instance of fair maps the instructions can be found on the github page but um so let me touch upon the idea that we're getting on with this demo it is about public data sets uh that can be contributed by uh a community the this particular use case the idea is that anyone can create their own maps and contribute them and the instructions are also on github in a nutshell you must spin up your own keynote followed by starting a fair os server and you then have to prepare the maps in a proper format a script is available to downlight download the map tiles for a specific region in the gear geo json format and another script can be used to convert the files into csv format an example in the video shows downloading tiles for a region around ljubljana ferro s dfs command line instance should be started new user is created followed by creating a pod a pod is a kind of a logical drive that can contain folders and files also uh it can be a key value store and the pod is opened the pod is opened and the new key value store is created and then opened and in the next steps a csv file with map data is loaded into a key value store so the data is sent via ferro s into swarm so the terminal window showing the activity shows a lot of traffic and after it finishes the pod with the map data is available to the user but we additionally want to share it with the world making it public so after issuing the sharing command a pod sharing reference is returned and by using this reference a pod could be mounted by other users and used for the maps so but as users will not want to add individual maps to the app the idea of a map registry comes into play a map registry is just another another ferrous public pod that contains links to other public pods that in turn contains specific maps so if you're a registry pod maintainer you can add maps to it even maps that other contribute in the demo we show adding a newly created map of slovenia and later on this map will be available in the user interface of fair apps to be fair maps to be used by the users so the demo actually showcases showcases a straightforward scenario when where an app can use publicly available registries uh and maps as data to display but the example can be generalized to other kinds of data and apps so actually what we want to achieve with this demo also is to give you a call to action so uh maintaining public data sets should be a community effort and um we ask you to join the experiment and perhaps to start become a country maintainer by providing providing maps in a shared pod so please follow the swarm newsletter and blogs to stay tuned and up to date on on this idea so you

Automatic transcript — names and jargon may be misspelled.