# Real world location into panoramic view

**URL:** <https://discourse.threejs.org/t/real-world-location-into-panoramic-view/35601>\
**Category:** Questions\
**Tags:** panorama, geometry\
**Created:** [March 5, 2022, 5:51pm UTC](https://discourse.threejs.org/t/real-world-location-into-panoramic-view/35601 "2022-03-05T17:51:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abder](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/abder/32/18743_2.png) [@Abder](https://discourse.threejs.org/u/Abder)\
**Post date:** [March 5, 2022, 5:51pm UTC](https://discourse.threejs.org/t/real-world-location-into-panoramic-view/35601/1 "2022-03-05T17:51:19Z")

</div>

Hello there  
how could we reflect the position of an object knowing its geographic coordinates in reel world into the pano image  
let me explain  
we know the camera geographic coordinate and also the store geographic coordinates we do have a Pano image , we need to put an icon on the position of the store on the pano image  
similar to what street view  
ex:  
store location coordinates ( 40.743156614156575, -73.99299610813702)  
Camera location coordinates (40.74309982288162, -73.99317313650572)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/b/7/b771b7dc80ce5fff853ab5714d9d91b02869fc2c.jpeg)

Hope you can help

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [March 5, 2022, 7:50pm UTC](https://discourse.threejs.org/t/real-world-location-into-panoramic-view/35601/2 "2022-03-05T19:50:31Z")

</div>

just set camera.position and object.position to these values?

---

<div class="post-metadata">

**Author:** ![vielzutun.ch](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/vielzutun.ch/32/21366_2.png) [@vielzutun.ch](https://discourse.threejs.org/u/vielzutun.ch)\
**Post date:** [March 5, 2022, 7:57pm UTC](https://discourse.threejs.org/t/real-world-location-into-panoramic-view/35601/3 "2022-03-05T19:57:51Z")

</div>

Uhmm …

The camera has a height above ground and a field of view, plus an orientation in space. Just like the panorama. All of those are unknown - at least to us.

With current information, that’ll be guesswork.

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [March 5, 2022, 8:01pm UTC](https://discourse.threejs.org/t/real-world-location-into-panoramic-view/35601/4 "2022-03-05T20:01:37Z")

</div>

fov does not really matter, only near-far range (it has to include the object). the height matters, right, but it seems to me that the 1st floor marker could look ok at the same height as the camera (car roof mount for google maps? hand-held by average height adult?). the only variable then is the panorama rotation around Y axis, and you will have to specify it somehow

---

<div class="post-metadata">

**Author:** ![Abder](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/abder/32/18743_2.png) [@Abder](https://discourse.threejs.org/u/Abder)\
**Post date:** [March 6, 2022, 5:23am UTC](https://discourse.threejs.org/t/real-world-location-into-panoramic-view/35601/5 "2022-03-06T05:23:13Z")

</div>

@makc3d you are right the height isn’t important.  
what function should we use in order to plug those values and get the object on the image?

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [March 6, 2022, 5:17pm UTC](https://discourse.threejs.org/t/real-world-location-into-panoramic-view/35601/6 "2022-03-06T17:17:36Z")

</div>

.position.set(lat, 0 lon) for example
