XR8.Vps.projectWayspots()
XR8.Vps.projectWayspots()
Description
Query data about each of your Project Wayspots.
Parameters
None
Returns
A promise with an array of ClientWayspotInfo
, which contains data about each of your Project Wayspots.
[{id, name, imageUrl, title, lat, lng }]
Property | Type | Description |
---|---|---|
id | String | id for this Wayspot, only stable within a session. |
name [Optional] | String | A reference to a Project Wayspot. |
imageUrl | String | URL to a representative image for this Wayspot. |
title | String | The Wayspot's title. |
lat | Number | Latitude of the Project Wayspot. |
lng | Number | Longitude of the Project Wayspot. |
Example
// Log the Project Wayspots.
XR8.Vps.projectWayspots().then((projectWayspots) => {
projectWayspots.forEach((projectWayspot) => {
console.log('projectWayspot: ', projectWayspot)
})
})