Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
1 1
Welcome to the last video of this section. 2
2
so we finished the Mapty project, 3
3
but to finish the section, 4
4
I just wanted to quickly address some additional features 5
5
that we could have implemented in this application. 6
6
And basically, I'm gonna leave them for you as challenges 7
7
if you'd like to spend some more time on this project. 8
8
And the first couple of features that you could implement 9
9
would be the ability to edit any workout 10
10
or to delete a workout 11
11
or also to delete all the workouts right from 12
12
the user interface. 13
13
So this is something that you can do 14
14
in most Web applications. 15
15
And so therefore, you could also add that ability here. 16
16
We didn't implement this together in this application 17
17
because I just wanted to keep things more simple here 18
18
and not to create a super huge application 19
19
that would take ages to build. 20
20
Now next up, you could add the ability 21
21
to sort workouts by a certain field, 22
22
for example, by distance or by duration. 23
23
And this one would be probably a little bit tricky 24
24
to implement, but you can take inspiration 25
25
from the Bankist application where I believe 26
26
we did something like this. 27
27
Now, another thing that you could do is to actually rebuild 28
28
the Running and Cycling objects that are coming 29
29
from Local storage. 30
30
So basically you could fix that problem that we run into 31
31
by the end of the last lecture 32
32
where the objects coming from local storage 33
33
were now regular objects 34
34
and no longer running and cycling objects. 35
35
So this would be a nice challenge for you to do 36
36
and to basically fix that error. 37
37
Another nice touch that you could use to this application, 38
38
is to create more realistic error messages 39
39
and confirmation messages. 40
40
So we just used a simple alert window 41
41
to display an error message when the input data 42
42
was not valid. 43
43
Right? 44
44
But that's kind of ugly and not really real world like. 45
45
And so therefore, 46
46
you could implement more realistic messages 47
47
and maybe you could even have them fade out 48
48
after some time. 49
49
So that would be a nice use case of some of the things 50
50
that we already learned before. 51
51
Okay, so these are the more easier ones. 52
52
Let's take a look at a couple of hard ones. 53
53
So first, you could add the ability to position the map 54
54
so that it shows all the workouts. 55
55
So let's say that you went to a different country 56
56
and did some workouts there. 57
57
And so your workouts are all over the map. 58
58
And so therefore, it would be nice to have a button 59
59
which shows all the workouts on the map at once. 60
60
However, to solve this problem, 61
61
you would probably have to do a lot of Googling 62
62
about the Leaflet library 63
63
and dig deep into the documentation. 64
64
Because of course, this functionality would depend entirely 65
65
on the Leaflet library. 66
66
Right? 67
67
Okay, but still, this would be actually nice to see, 68
68
but let's see another one, 69
69
which would probably be even harder, 70
70
which is the ability to draw lines and shapes 71
71
instead of simply having a point for each workout. 72
72
So this would be a real challenge 73
73
and maybe it wouldn't be such a good idea 74
74
to actually try this one out. 75
75
But still, I wanted to just leave this here 76
76
as a potential improvement to this application. 77
77
So when you go on a run, of course, the run is not just 78
78
on a point, but it's more like on a line 79
79
or maybe like a circular shape or something like that. 80
80
And so it would be nice to have that 81
81
instead of just a point. 82
82
And finally, I have two more challenges 83
83
to improve this project that you could only implement 84
84
after the next section. 85
85
But let me still show them here. 86
86
So you could Geocode location from the coordinates. 87
87
So you could use a third party API 88
88
to plug in the coordinates, 89
89
and that would then give you back the real location. 90
90
So, for example, you could then call the run, 91
91
a "Run in Faro, Portugal" 92
92
Because the third party Web API 93
93
would give you that location data. 94
94
So a description of the location, 95
95
not just the raw coordinates. 96
96
And then besides that, you could also use a third party API 97
97
to display the weather for the work out time and place. 98
98
But again, these two you can maybe tackle after 99
99
the end of the next section, 100
100
if you feel like improving this project even more. 101
101
All right. 102
102
So it would be really great to see some of these features 103
103
actually implemented by you. 104
104
And if you do one of them or even more, 105
105
then make sure to share your results in the course Q&A 106
106
or even on Twitter. 107
107
And there you can use one of the hashtags 108
108
that I mentioned earlier. 109
109
But anyway, that's it for this video and for the section 110
110
and for this project. 111
111
So once again, congratulations 112
112
for reaching the end of this project 113
113
and even more for sticking with this course 114
114
all the way up to this point. 115
115
What an amazing achievement, really. 116
116
I cannot overstate this, and I'm really happy for you 117
117
and for all your progress. 118
118
And now just keep going, because the next section 119
119
is actually one of the most important ones 120
120
in the whole course. 121
121
So I hope to see you there very soon.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.