# Event or callback when a new VPS is scanned and localized

**URL:** <https://community.nianticspatial.com/t/event-or-callback-when-a-new-vps-is-scanned-and-localized/2632>\
**Category:** I'm Stuck\
**Created:** [September 21, 2022, 8:57am UTC](https://community.nianticspatial.com/t/event-or-callback-when-a-new-vps-is-scanned-and-localized/2632 "2022-09-21T08:57:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simone](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@Simone](https://community.nianticspatial.com/u/Simone)\
**Post date:** [September 21, 2022, 8:57am UTC](https://community.nianticspatial.com/t/event-or-callback-when-a-new-vps-is-scanned-and-localized/2632/1 "2022-09-21T08:57:07Z")

</div>

- **Issue category** : VPS
- **Device type & OS version** : iOS
- **Host machine & OS version** : Mac
- **Xcode version** : 13.4.1
- **ARDK version** : 2.2.1
- **Unity version** : 2020.3.19f

Description of the issue:  
I need to make an app, where i scan a series of VPS and for each of them i have a video.  
I managed to do something similar using the WayspotAnchorExample, i can Localize the user after the scan of a VPS, and i can place anchors and attach a video to the anchor.  
But the process of mapping the tour is problematic, because i need to Restart the Session for every VPS, or the anchor will be attached to the same VPS.  
I would like to use 1 Anchor for 1 VPS so the drift will be reduced, but i’m unable to find a method or a callback that inform the app when a new VPS is scanned. I know that it is scanned because it loads the anchor attached to it.  
Is there a callback or an event that i can monitor to determine if a new VPS is scanned ? After the user Localization ?

Thanks

---

<div class="post-metadata">

**Author:** ![Umaiya\_Doddamani1](https://avatars.discourse-cdn.com/v4/letter/u/439d5e/32.png) [@Umaiya\_Doddamani1](https://community.nianticspatial.com/u/Umaiya_Doddamani1)\
**Post date:** [September 21, 2022, 7:33pm UTC](https://community.nianticspatial.com/t/event-or-callback-when-a-new-vps-is-scanned-and-localized/2632/2 "2022-09-21T19:33:47Z")

</div>

Hello Simone,

Did you try setting ”WayspotAnchorsConfiguration.ContinuousLocalizationEnabled” to true? With this VPS will continue to localize after initial localization. As this will happen in a single session, no need to restart the session every time. This can also help to avoid drift in longer(10+ minutes) VPS sessions. You can read more about Continuous Localization [here](https://lightship.dev/docs/ardk/vps/vps_localization.html#continuous-localization).

Hope this helps you to resolve your issue and proceed further.

---

<div class="post-metadata">

**Author:** ![Simone](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@Simone](https://community.nianticspatial.com/u/Simone)\
**Post date:** [September 30, 2022, 8:30am UTC](https://community.nianticspatial.com/t/event-or-callback-when-a-new-vps-is-scanned-and-localized/2632/3 "2022-09-30T08:30:51Z")

</div>

Hello Umaiya

Yes i am using the WayspotAnchorsConfiguration.ContinuousLocalizationEnabled, and i think is working butm i have no event or way to know if a new VPS has been localized , so i can’t be sure if i am going to set the Anchor for a new point or the old one.

---

<div class="post-metadata">

**Author:** ![Maverick\_Niantic](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Maverick\_Niantic](https://community.nianticspatial.com/u/Maverick_Niantic)\
**Post date:** [March 5, 2026, 11:18pm UTC](https://community.nianticspatial.com/t/event-or-callback-when-a-new-vps-is-scanned-and-localized/2632/4 "2026-03-05T23:18:32Z")

</div>


