How I can display additional information in my search result in the search box of my map

Is it possible to get the code of this map :

I want to know how in the search box, we can have the name and the type category of the name... Thank you

I work with RSTUDIO.

By the way, this map is coded in Basic Javascript but you can do that with the help of which softwares. Is there an equivalent code for RStudio?