Check out the latest CoastSnaps provided by our community scientists at the 27 monitoring stations in the East Riding of Yorkshire. 

Withernsea Lifeboat

{source}<?php
$json_string = file_get_contents("https://www.spotteron.com/api/v2/spots?filter[topic_id]=37&filter[root_id]=629356&limit=4&page=1&order[]=flag_count+ASC&order[]=id+desc");
$parsed_json = json_decode($json_string, true);
$parsed_json = $parsed_json['data'];

echo '<div class="g-grid">';
foreach($parsed_json as $spot)
{
echo '<div class="NewestSpot g-block size-25" style="background-image: url(';
if (!empty($spot['attributes']['image']))
{
echo 'https://files.spotteron.com/images/spots/' . $spot['attributes']['image'] . '.jpg';
} else {
echo 'https://www.coronareport.eu/images/logos/CR_Avatar.png';
}
echo ');"><div class="SpotInfos"><div class="Avatar" style="background-image: url(';
if (!empty($spot['attributes']['spotted_by_image']))
{
echo 'https://files.spotteron.com/thumbs/users/x200/'.$spot['attributes']['spotted_by_image'].'.jpg';
} else {
echo 'https://www.spotteron.net/AppProjectWebsites/images/emptyuser.png';
}
echo ');"></div>'.$spot['attributes']['spotted_by_name'].'<br/>';
$date = DateTime::createFromFormat('Y-m-d H:i:s', $spot['attributes']['spotted_at']);
echo $date->format('d/m/Y');
echo '</div><a class="translink" href="https://www.spotteron.com/coastsnap/spots/'.$spot['id'].'" target="spotteron2"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="/></a></div><br>';
}
echo '</div>';
?>
{/source}

Danes Dyke

{source}<?php
$json_string = file_get_contents("https://www.spotteron.com/api/v2/spots?filter[topic_id]=37&filter[root_id]=625822&limit=4&page=1&order[]=flag_count+ASC&order[]=id+desc");
$parsed_json = json_decode($json_string, true);
$parsed_json = $parsed_json['data'];

echo '<div class="g-grid">';
foreach($parsed_json as $spot)
{
echo '<div class="NewestSpot g-block size-25" style="background-image: url(';
if (!empty($spot['attributes']['image']))
{
echo 'https://files.spotteron.com/images/spots/' . $spot['attributes']['image'] . '.jpg';
} else {
echo 'https://www.coronareport.eu/images/logos/CR_Avatar.png';
}
echo ');"><div class="SpotInfos"><div class="Avatar" style="background-image: url(';
if (!empty($spot['attributes']['spotted_by_image']))
{
echo 'https://files.spotteron.com/thumbs/users/x200/'.$spot['attributes']['spotted_by_image'].'.jpg';
} else {
echo 'https://www.spotteron.net/AppProjectWebsites/images/emptyuser.png';
}
echo ');"></div>'.$spot['attributes']['spotted_by_name'].'<br/>';
$date = DateTime::createFromFormat('Y-m-d H:i:s', $spot['attributes']['spotted_at']);
echo $date->format('d/m/Y');
echo '</div><a class="translink" href="https://www.spotteron.com/coastsnap/spots/'.$spot['id'].'" target="spotteron2"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="/></a></div><br>';
}
echo '</div>';
?>
{/source}

Flamborough Clifftop Walk

{source}<?php
$json_string = file_get_contents("https://www.spotteron.com/api/v2/spots?filter[topic_id]=37&filter[root_id]=625823&limit=4&page=1&order[]=flag_count+ASC&order[]=id+desc");
$parsed_json = json_decode($json_string, true);
$parsed_json = $parsed_json['data'];

echo '<div class="g-grid">';
foreach($parsed_json as $spot)
{
echo '<div class="NewestSpot g-block size-25" style="background-image: url(';
if (!empty($spot['attributes']['image']))
{
echo 'https://files.spotteron.com/images/spots/' . $spot['attributes']['image'] . '.jpg';
} else {
echo 'https://www.coronareport.eu/images/logos/CR_Avatar.png';
}
echo ');"><div class="SpotInfos"><div class="Avatar" style="background-image: url(';
if (!empty($spot['attributes']['spotted_by_image']))
{
echo 'https://files.spotteron.com/thumbs/users/x200/'.$spot['attributes']['spotted_by_image'].'.jpg';
} else {
echo 'https://www.spotteron.net/AppProjectWebsites/images/emptyuser.png';
}
echo ');"></div>'.$spot['attributes']['spotted_by_name'].'<br/>';
$date = DateTime::createFromFormat('Y-m-d H:i:s', $spot['attributes']['spotted_at']);
echo $date->format('d/m/Y');
echo '</div><a class="translink" href="https://www.spotteron.com/coastsnap/spots/'.$spot['id'].'" target="spotteron2"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="/></a></div><br>';
}
echo '</div>';
?>
{/source}