Autocomplete and Directions

Could anyone help me please, How can I display that HTML code in a web view?

This would be the code, And this is what it does

what i want to do is add this code and be able to see it in web view
My idea is to do an autocomplete and plot the route on the map.