How do I programmatically populate longitude and latitude fields when Geolocation used in content type
Pretty straight forward just had to change the field names to correspond with the field names used by Geolocation:

$node=Node::create(
  'type' =&gt; 'content type - machine name',
  'title' =&gt; 'Shop 1',
  'geolocation_field' =&gt; ['lat'=&gt; 1, 'lng' =&gt; 2.33]
);
$node-&gt;save();