import { me } from 'companion' ; if ( me . launchReasons . locationChanged ) { console . log ( 'Significant location change!' ) ; var pos = me . launchReasons . locationChanged . position ; console . log ( 'Latitude: ' + pos . coords . latitude , 'Longitude: ' + pos . coords . longitude ) ; }