# Path from one point to other

**URL:** <https://community.cesium.com/t/path-from-one-point-to-other/6949>\
**Category:** CesiumJS\
**Created:** [May 23, 2018, 7:20am UTC](https://community.cesium.com/t/path-from-one-point-to-other/6949 "2018-05-23T07:20:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham\_Mahale](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Shubham\_Mahale](https://community.cesium.com/u/Shubham_Mahale)\
**Post date:** [May 23, 2018, 7:20am UTC](https://community.cesium.com/t/path-from-one-point-to-other/6949/1 "2018-05-23T07:20:03Z")

</div>

Hi Gabby,

I want to develop application in which it will show the path to reach from one point to another point.

From where should i start this using cesium?

Basically, show fastest possible paths to reach from one point to other (where, 2 position of points are mentioned).

How can we show this?  
Please help

Thanks in advance

Regards,  
Shubham M.

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [May 23, 2018, 2:27pm UTC](https://community.cesium.com/t/path-from-one-point-to-other/6949/2 "2018-05-23T14:27:42Z")

</div>

Hi Shubham,

You would need to determine your way of calculating the path positions, and one you have the positions then you could visualize the path in Cesium using a [Polyline](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html?src=Polyline.html).

We have a cool demo on the site that does something similar called [Wayfinder](https://cesiumjs.org/demos/Wayfinder3D/).

Thanks,

Gabby

---

<div class="post-metadata">

**Author:** ![Shubham\_Mahale](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Shubham\_Mahale](https://community.cesium.com/u/Shubham_Mahale)\
**Post date:** [May 24, 2018, 5:04am UTC](https://community.cesium.com/t/path-from-one-point-to-other/6949/3 "2018-05-24T05:04:17Z")

</div>

Hi Gabby,

Can we have some algorithm to reach from one point to another?

Since way-finder, has its position as static, but i need points to be created dynamic depending on point 1 and point 2.

Please guide

Regards,

Shubham M

---

<div class="post-metadata">

**Author:** ![Shubham\_Mahale](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Shubham\_Mahale](https://community.cesium.com/u/Shubham_Mahale)\
**Post date:** [May 28, 2018, 10:36am UTC](https://community.cesium.com/t/path-from-one-point-to-other/6949/4 "2018-05-28T10:36:45Z")

</div>

Hi Gabby,

Can we implement terrian profile with terrian synchronization??

i.e. if we keep cursor on terrian part on globe, it should show its exact location on another window(which is showing terrian profile)

for eg :- please refer below image…(with 2 black dots showing exact locations)

one black dots on globe and another dot on terrian profile below…

 ![image.jpg](https://global.discourse-cdn.com/cesium/original/2X/6/6c1f811cc4347676463b19a8f8f71ca442362d68.jpeg)

Can we implement the same??

Please help here.

Regards,

Shubham Mahale

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [May 29, 2018, 3:51pm UTC](https://community.cesium.com/t/path-from-one-point-to-other/6949/5 "2018-05-29T15:51:30Z")

</div>

You should be able to update the other window on the mouse move event like in the [picking example](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html?src=Picking.html). You should be able to grab the relevant information like position and elevation in the same way as that example as well.

---

<div class="post-metadata">

**Author:** ![Shubham\_Mahale](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Shubham\_Mahale](https://community.cesium.com/u/Shubham_Mahale)\
**Post date:** [May 24, 2018, 4:00am UTC](https://community.cesium.com/t/path-from-one-point-to-other/6949/6 "2018-05-24T04:00:40Z")

</div>

Thank you Gabby…

I have a geoJSON in which all my positions will be defined. I just need to display path between that points.

I will try using wayfinder for now.

Regards,

Shubham M

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [May 24, 2018, 2:03pm UTC](https://community.cesium.com/t/path-from-one-point-to-other/6949/7 "2018-05-24T14:03:10Z")

</div>

That’s outside of the scope of CesiumJS, which is for visualization, not for calculating shortest paths. There are many different algorithms available if you google “shortest path algorithm”.
