Update HRP geo file

This commit is contained in:
2019-03-06 22:27:32 +01:00
parent 2edba945c9
commit 49090d1416
3 changed files with 13692 additions and 2156 deletions

View File

@@ -1,5 +1,12 @@
<?php
/**
* Feed Class
* Also takes care of spot (device) & messages
*
* To add a new feed, create a new records in the feed table:
* INSERT INTO feeds (ref_feed_id, id_spot, id_project) VALUES ('<feed_id>', '<related_spot_id>', '<related_project_id>');
*/
class Feed extends PhpObject {
//Spot feed
@@ -20,7 +27,6 @@ class Feed extends PhpObject {
private $iFeedId;
private $sRefFeedId;
private $iLastUpdate;
public function __construct(Db &$oDb, $iFeedId) {
@@ -65,7 +71,7 @@ class Feed extends PhpObject {
if(!empty($asMsgs))
{
//Update Spot Info
//Update Spot Info from the first message
$asFirstMsg = array_values($asMsgs)[0];
$asSpotInfo = array(
'ref_spot_id' => $asFirstMsg['messengerId'],