Get more customers through your door by installing the Moovit directions web widget today.
If you want more people to visit your place of business, here’s the solution. Moovit, the world’s #1 transit app, is now available as a handy web widget. The Moovit Directions widget makes it easier for people to get to you with the most accurate directions via public transit.
When you’ve received the code snipped via email, copy and paste it onto your website HTML.
The code must be placed between the <body> and </body> tags of your page. If your code is placed outside of these tags, the widget won’t appear correctly.
Example HTML page before the widget code is added.
<html>
<head>
This is the head of your page.
<title>Example HTML page</title>
</head>
<body>
This is the body of your page.
</body>
</html>
HTML after the widget code is added.
<html> <head> This is the head of your page. <title>Example HTML page</title> </head> <body> This is the body of your page. <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "https://widgets.moovit.com/ws/<UNIQUE KEY>/987596"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'moovit-jsw')); </script> <div class="mv-gd-widget-20" data-width="300" data-height="473" </div> </body> </html>
Note: this is sample code only, please don’t use it in your own site’s HTML.
Finally, publish your website and voila!
As with other elements of your website you can change the position of the Moovit widget by using HTML tags as <div>, <table>, etc.
For example, if you place <div align=”center”> and </div> around your Moovit widget code, the widget will appear in the center of your page.
<html> <head> This is the head of your page. <title>Example HTML page</title> </head> <body> This is the body of your page. <div align="center"> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "https://widgets.moovit.com/ws/<UNIQUE KEY>/987596"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'moovit-jsw')); </script> <div class="mv-gd-widget-20" data-width="300" data-height="473" </div> </div> </body> </html>
Note: this is sample code only, please don’t use it in your own site’s HTML.
– The Moovit Widget is free of charge.
– Not right now, but we reserve the right to add a limit in the future.
– Absolutely.
– Please signup for a different a widget key per website.
Here are some examples of different widgets with and without map: