'location',
'title' => 'Attraction Location',
'geolocation_cords_field' => ['lat'=> 36.386122, 'lng' => 25.428413]
);
$node->save();
?>
Setting the proper values at a geolocation field programmatically in drupal 8 is different from typical field values. This code will do the trick:
geolocation