Trip embeds
Embed a road trip map on your website
For travel writers, bloggers, tourism sites, car clubs and creators. Plan a route in PYRT, copy one piece of code, and your readers get an interactive map of the drive with every stop and day on it.
A live example
This is a real embed of a public trip, exactly as it appears on another site. Choose a day, tap a pin or move the map.
What an embedded trip shows
The route on real roads
The driving line between the stops, as the trip page shows it, on an OpenStreetMap-based map.
Numbered stops
A numbered pin for each stop, in route order. Tapping a pin shows the stop's name.
A day-by-day list
Each day with its stops underneath. Choosing a day zooms the map to that day's drive; “Whole route” zooms back out.
Days, stops and distance
The trip's name with its number of days, number of stops and total distance in the header.
A small “Planned with PYRT” link sits in the corner of the map, and the code adds a “Route planned with PYRT” link under it on your page.
It stays up to date. The embed reads the trip each time it loads rather than taking a snapshot, so when you add a stop, move a day or change the route in the planner, the map on your site shows the change within a few minutes. You never need to copy the code again.
How to embed a trip in three steps
- 1
Build the trip
Create a free account and plan the trip in the planner: add your stops and put them on days. Then make the trip public. Only public trips can be embedded.
- 2
Copy the embed code
Open Trip settings, go to the Sharing tab and choose Embed under “Embed on your website”. Pick a size (responsive, 600 × 450 or 800 × 600), check the preview and press Copy code. The same button is on the trip's public page.
- 3
Paste it into your site
Paste the code into an HTML or embed block. In WordPress that is the Custom HTML block, in Squarespace the Code block, and in Wix the Embed HTML (iframe) element. Keep the link under the map: it takes readers to the full itinerary.
Example embed code
This is the code for the example above, in the same format the planner gives you. It is two parts: the map (an iframe) and a plain link to the trip under it. Inline styles only, so it looks the same whatever your site's theme.
Embed code
<iframe src="https://planyourroadtrips.com/embed/trip/edinburgh-mull-dvP9og" width="100%" height="500" style="border:0;border-radius:12px" loading="lazy" title="Edinburgh to Mull route map"></iframe>
<p style="font:14px sans-serif"><a href="https://planyourroadtrips.com/trip/view/edinburgh-mull-dvP9og">Route planned with PYRT</a></p>What your readers can do
- Move and zoom the map, tap a pin for the stop's name, and pick a day to see just that day's drive.
- Open the full trip page in a new tab from the trip name or the PYRT link, without leaving your page behind.
- Use Copy this trip on the trip page to get their own editable copy of the route, stops and days in a free account. Booking references, attachments and personal notes are not copied.
See how many people view it
The embed panel in Trip settings shows the trip's views: all time, visitors, the last 30 days and views through embeds, plus the sites showing your map with the most views (top five). Only you and your editors see these numbers. Visitors are counted once per day, and your own preview is not counted.
Questions about embedding trips
Is it free?
Yes. Planning a trip and embedding it are both free, and there is no limit on how many trips you embed or how many people view them.
Does it work on mobile?
Yes. On a narrow screen the map sits above the day list instead of beside it. The map needs two fingers to move (or Ctrl/⌘ and scroll on a computer), so readers scrolling past it on your page don't get stuck in the map.
Can I share a link instead?
Yes. A public trip has its own page at planyourroadtrips.com/trip/view/… that anyone with the link can open without an account, with the full itinerary. Share that address wherever you like, alongside an embed or instead of one.
Can I embed a private trip?
No. An embed shows the route to anyone visiting the site it sits on, so it only works for public trips. If you make a trip private again, its embeds show “This trip isn’t public” instead of the map within a few minutes.
Can I choose the size or a dark version?
Choose a size when you copy the code, or change the width and height in it. Add ?theme=dark to the end of the iframe's src for a dark map, or ?day=2 to open it on day 2.
Plan a trip to embed
Add your stops, put them on days and make the trip public. The embed code is in Trip settings under Sharing.