# Custom/dynamic embed code for own website

**URL:** https://ask.openrouteservice.org/t/custom-dynamic-embed-code-for-own-website/2292
**Category:** Maps Website
**Created:** [November 9, 2020, 2:14pm UTC](https://ask.openrouteservice.org/t/custom-dynamic-embed-code-for-own-website/2292 "2020-11-09T14:14:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shaedrich](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@shaedrich](https://ask.openrouteservice.org/u/shaedrich)
#### Post date: [November 9, 2020, 2:14pm UTC](https://ask.openrouteservice.org/t/custom-dynamic-embed-code-for-own-website/2292/1 "2020-11-09T14:14:42Z")

</div>

Hey folks,

I hope, that’s the proper category for this.

I tested your VueJS Maps in beta and tried to get the embed code working but there are some weird things happening (I know, it’s still in beta): Whenever I try to embed a route with a starting place and a destination, the embed code only shows a round trip from the starting point back to the starting point.

Second, I wanted to dynamically create the link since I have a couple of routes in my project and don’t want to manually create the code on the website for each route. I saw, that for places you include latitude and longitude in your embed code. So is there a way to create an embed code consisting of two or more latitude/longitude combinations which make a route?

Thanks in advance!

Best regards

---

<div class="post-metadata">

### Author: ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)
#### Post date: [November 10, 2020, 8:57am UTC](https://ask.openrouteservice.org/t/custom-dynamic-embed-code-for-own-website/2292/2 "2020-11-10T08:57:41Z")

</div>

Hi @shaedrich,

> [@shaedrich](#):
>
> I tested your VueJS Maps in beta and tried to get the embed code working but there are some weird things happening (I know, it’s still in beta): Whenever I try to embed a route with a starting place and a destination, the embed code only shows a round trip from the starting point back to the starting point.

could you add an issue in the [github repo](https://github.com/GIScience/ors-map-client) for this, and include proper examples

As far as i know the locations are resolved to text in the link. You could try replacing them with the coordinates. Maybe @amoncaldas can give you more info on this

best regards
