How do I write to location field in an Entity?
This works, but (here's the trick), only if you enable the location_entity module, which ships with location.

$location = array(
  'latitude' =&gt; $latitude,
  'street'   =&gt; $street,
  // etc, other elements added here ...
);

$ew-&gt;field_location-&gt;set($location);
$ew-&gt;save();


May no one else lose as much time on this ever again.