SeaETA
← Back to calculator

Embed a sea route search

Add SeaETA to another website with one snippet. Visitors enter a departure and destination, see the route they searched, and open that route on SeaETA.

Install

Paste this where the widget should appear. It stays about 400 pixels wide and grows to fit the result. The route opens in a new tab, so the surrounding page stays put.

<div id="seaeta-widget"></div>
<script
  async
  src="https://www.seaeta.com/widget.js"
  data-target="seaeta-widget"
  data-partner="your-site"
></script>

Optional attributes

  • data-partner is a short name for your site, such as harbor-daily. It is added to the SeaETA link so you can see which embed sent the visit.
  • data-from and data-to prefill the port fields. Add data-auto="1" to calculate that pair when the widget loads.
  • data-target is the id of the element that should hold the widget. Omit it to place the widget just before the script.

Allow https://www.seaeta.com in your page's script-src and frame-src if you use a Content Security Policy. The widget shares SeaETA's free search: one route per day. A second search asks the visitor to continue on SeaETA. A cookie on the widget remembers that daily search. The preview is an approximate planning route at 12 knots. Opening it on SeaETA runs the full calculator.