Add a useful public, shared and active transport planner to your website for free as part of the Tayside and Central Transport Partnership’s ‘ENABLE’ MaaS project. You can choose to have a locked location, such as a shop or hotel, as a set destination or a free-type text box which visitors to your site can enter any destination into.
This page is for web developers looking to embed the National Park Journey Planner widget onto an existing website/webpage. Note that by including the National Park Journey Planner widget on your web site, you must agree to the National Park Journey Planner widget terms and conditions, as well as to the terms and conditions for the National Park Journey Planner.
To include the widget on your website please add the following lines of code:
inside <body></body>
tag:
<journey-planner-widget></journey-planner-widget> <script type="text/javascript" src="https://widget.nationalparkjourneyplanner.co.uk/js/app.js"></script>
To lock the destination to a chosen address add destination
attribute to the <journey-planner-widget></journey-planner-widget>
tag:
<journey-planner-widget destination="Loch Lomond National Park"></journey-planner-widget>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Your website title</title>
</head>
<body>
<journey-planner-widget destination="Loch Lomond National Park"></journey-planner-widget>
<script type="text/javascript" src="https://widget.nationalparkjourneyplanner.co.uk/js/app.js"></script>
</body>
</html>