Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active May 14, 2017 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/c6ac6c37af4bfa81835062907811320e to your computer and use it in GitHub Desktop.
Save matthieu-D/c6ac6c37af4bfa81835062907811320e to your computer and use it in GitHub Desktop.
requestDataFromLocal: function requestDataFromLocalFn(centerPointLatitude, centerPointLongitude) {
var poisToCreate = 3;
var poiData = [];
for (var i = 0; i < poisToCreate; i++) {
poiData.push({
"id": meetingPoints[i].id,
"longitude": (centerPointLongitude + (Math.random() / 5 - 0.1)),
"latitude": (centerPointLatitude + (Math.random() / 5 - 0.1)),
"shortDescription": meetingPoints[i].shortDescription,
"longDescription": meetingPoints[i].longDescription,
"altitude": AR.CONST.UNKNOWN_ALTITUDE,
"name": meetingPoints[i].name,
"icon": meetingPoints[i].icon
});
}
World.loadPoisFromJsData(poiData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment