function onLocationUpdated(handler: function): void;
handler(event: LocationUpdatedEnvelope): void | Promise<void>
import { locations } from "@wix/business-tools"; locations.onLocationUpdated((event) => { // handle your event here });