BEGIN TRANSACTION;
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.355925481766 -5.0682273879647)', '2026-07-15 03:07:21', -23.399993896484, 0, 'deslocando'); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.355796316639 -5.0684355944395)', '2026-07-15 03:07:30', -8.2000122070312, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355925481766 -5.0682273879647)'), GeomFromEWKT('SRID=4674;POINT (-36.355796316639 -5.0684355944395)'))) / (select extract(epoch from '2026-07-15 03:07:30'::timestamp) - extract(epoch from '2026-07-15 03:07:21'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355925481766 -5.0682273879647)'), GeomFromEWKT('SRID=4674;POINT (-36.355796316639 -5.0684355944395)'))) / (select extract(epoch from '2026-07-15 03:07:30'::timestamp) - extract(epoch from '2026-07-15 03:07:21'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.355742169544 -5.0683275517076)', '2026-07-15 03:07:42', -23.200012207031, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355796316639 -5.0684355944395)'), GeomFromEWKT('SRID=4674;POINT (-36.355742169544 -5.0683275517076)'))) / (select extract(epoch from '2026-07-15 03:07:42'::timestamp) - extract(epoch from '2026-07-15 03:07:30'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355796316639 -5.0684355944395)'), GeomFromEWKT('SRID=4674;POINT (-36.355742169544 -5.0683275517076)'))) / (select extract(epoch from '2026-07-15 03:07:42'::timestamp) - extract(epoch from '2026-07-15 03:07:30'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.35578324087 -5.0683361850679)', '2026-07-15 03:07:53', 4, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355742169544 -5.0683275517076)'), GeomFromEWKT('SRID=4674;POINT (-36.35578324087 -5.0683361850679)'))) / (select extract(epoch from '2026-07-15 03:07:53'::timestamp) - extract(epoch from '2026-07-15 03:07:42'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355742169544 -5.0683275517076)'), GeomFromEWKT('SRID=4674;POINT (-36.35578324087 -5.0683361850679)'))) / (select extract(epoch from '2026-07-15 03:07:53'::timestamp) - extract(epoch from '2026-07-15 03:07:42'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.355976527557 -5.068146167323)', '2026-07-15 03:08:02', -2.6000061035156, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.35578324087 -5.0683361850679)'), GeomFromEWKT('SRID=4674;POINT (-36.355976527557 -5.068146167323)'))) / (select extract(epoch from '2026-07-15 03:08:02'::timestamp) - extract(epoch from '2026-07-15 03:07:53'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.35578324087 -5.0683361850679)'), GeomFromEWKT('SRID=4674;POINT (-36.355976527557 -5.068146167323)'))) / (select extract(epoch from '2026-07-15 03:08:02'::timestamp) - extract(epoch from '2026-07-15 03:07:53'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.356034865603 -5.0681252963841)', '2026-07-15 03:08:05', -0.79998779296875, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355976527557 -5.068146167323)'), GeomFromEWKT('SRID=4674;POINT (-36.356034865603 -5.0681252963841)'))) / (select extract(epoch from '2026-07-15 03:08:05'::timestamp) - extract(epoch from '2026-07-15 03:08:02'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355976527557 -5.068146167323)'), GeomFromEWKT('SRID=4674;POINT (-36.356034865603 -5.0681252963841)'))) / (select extract(epoch from '2026-07-15 03:08:05'::timestamp) - extract(epoch from '2026-07-15 03:08:02'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.356054479256 -5.0681175850332)', '2026-07-15 03:08:08', 0, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.356034865603 -5.0681252963841)'), GeomFromEWKT('SRID=4674;POINT (-36.356054479256 -5.0681175850332)'))) / (select extract(epoch from '2026-07-15 03:08:08'::timestamp) - extract(epoch from '2026-07-15 03:08:05'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.356034865603 -5.0681252963841)'), GeomFromEWKT('SRID=4674;POINT (-36.356054479256 -5.0681175850332)'))) / (select extract(epoch from '2026-07-15 03:08:08'::timestamp) - extract(epoch from '2026-07-15 03:08:05'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.355946017429 -5.068362923339)', '2026-07-15 03:08:33', 13, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.356054479256 -5.0681175850332)'), GeomFromEWKT('SRID=4674;POINT (-36.355946017429 -5.068362923339)'))) / (select extract(epoch from '2026-07-15 03:08:33'::timestamp) - extract(epoch from '2026-07-15 03:08:08'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.356054479256 -5.0681175850332)'), GeomFromEWKT('SRID=4674;POINT (-36.355946017429 -5.068362923339)'))) / (select extract(epoch from '2026-07-15 03:08:33'::timestamp) - extract(epoch from '2026-07-15 03:08:08'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.355983316898 -5.0683658570051)', '2026-07-15 03:08:45', 21.799987792969, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355946017429 -5.068362923339)'), GeomFromEWKT('SRID=4674;POINT (-36.355983316898 -5.0683658570051)'))) / (select extract(epoch from '2026-07-15 03:08:45'::timestamp) - extract(epoch from '2026-07-15 03:08:33'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355946017429 -5.068362923339)'), GeomFromEWKT('SRID=4674;POINT (-36.355983316898 -5.0683658570051)'))) / (select extract(epoch from '2026-07-15 03:08:45'::timestamp) - extract(epoch from '2026-07-15 03:08:33'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.356013994664 -5.068378848955)', '2026-07-15 03:08:56', 22.799987792969, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355983316898 -5.0683658570051)'), GeomFromEWKT('SRID=4674;POINT (-36.356013994664 -5.068378848955)'))) / (select extract(epoch from '2026-07-15 03:08:56'::timestamp) - extract(epoch from '2026-07-15 03:08:45'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.355983316898 -5.0683658570051)'), GeomFromEWKT('SRID=4674;POINT (-36.356013994664 -5.068378848955)'))) / (select extract(epoch from '2026-07-15 03:08:56'::timestamp) - extract(epoch from '2026-07-15 03:08:45'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371033862233 -5.0612868368626)', '2026-07-15 04:29:38', -15.200012207031, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.356013994664 -5.068378848955)'), GeomFromEWKT('SRID=4674;POINT (-36.371033862233 -5.0612868368626)'))) / (select extract(epoch from '2026-07-15 04:29:38'::timestamp) - extract(epoch from '2026-07-15 03:08:56'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.356013994664 -5.068378848955)'), GeomFromEWKT('SRID=4674;POINT (-36.371033862233 -5.0612868368626)'))) / (select extract(epoch from '2026-07-15 04:29:38'::timestamp) - extract(epoch from '2026-07-15 03:08:56'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371010476723 -5.0612702406943)', '2026-07-15 04:29:44', -9.7999877929688, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371033862233 -5.0612868368626)'), GeomFromEWKT('SRID=4674;POINT (-36.371010476723 -5.0612702406943)'))) / (select extract(epoch from '2026-07-15 04:29:44'::timestamp) - extract(epoch from '2026-07-15 04:29:38'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371033862233 -5.0612868368626)'), GeomFromEWKT('SRID=4674;POINT (-36.371010476723 -5.0612702406943)'))) / (select extract(epoch from '2026-07-15 04:29:44'::timestamp) - extract(epoch from '2026-07-15 04:29:38'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.37101248838 -5.0612698215991)', '2026-07-15 04:29:46', -8.7999877929688, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371010476723 -5.0612702406943)'), GeomFromEWKT('SRID=4674;POINT (-36.37101248838 -5.0612698215991)'))) / (select extract(epoch from '2026-07-15 04:29:46'::timestamp) - extract(epoch from '2026-07-15 04:29:44'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371010476723 -5.0612702406943)'), GeomFromEWKT('SRID=4674;POINT (-36.37101248838 -5.0612698215991)'))) / (select extract(epoch from '2026-07-15 04:29:46'::timestamp) - extract(epoch from '2026-07-15 04:29:44'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371483635157 -5.0614627730101)', '2026-07-15 04:30:20', -6.3999938964844, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.37101248838 -5.0612698215991)'), GeomFromEWKT('SRID=4674;POINT (-36.371483635157 -5.0614627730101)'))) / (select extract(epoch from '2026-07-15 04:30:20'::timestamp) - extract(epoch from '2026-07-15 04:29:46'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.37101248838 -5.0612698215991)'), GeomFromEWKT('SRID=4674;POINT (-36.371483635157 -5.0614627730101)'))) / (select extract(epoch from '2026-07-15 04:30:20'::timestamp) - extract(epoch from '2026-07-15 04:29:46'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371261933818 -5.0613490305841)', '2026-07-15 04:30:38', 25.400024414062, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371483635157 -5.0614627730101)'), GeomFromEWKT('SRID=4674;POINT (-36.371261933818 -5.0613490305841)'))) / (select extract(epoch from '2026-07-15 04:30:38'::timestamp) - extract(epoch from '2026-07-15 04:30:20'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371483635157 -5.0614627730101)'), GeomFromEWKT('SRID=4674;POINT (-36.371261933818 -5.0613490305841)'))) / (select extract(epoch from '2026-07-15 04:30:38'::timestamp) - extract(epoch from '2026-07-15 04:30:20'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371315829456 -5.0613176822662)', '2026-07-15 04:30:54', 24.599975585938, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371261933818 -5.0613490305841)'), GeomFromEWKT('SRID=4674;POINT (-36.371315829456 -5.0613176822662)'))) / (select extract(epoch from '2026-07-15 04:30:54'::timestamp) - extract(epoch from '2026-07-15 04:30:38'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371261933818 -5.0613490305841)'), GeomFromEWKT('SRID=4674;POINT (-36.371315829456 -5.0613176822662)'))) / (select extract(epoch from '2026-07-15 04:30:54'::timestamp) - extract(epoch from '2026-07-15 04:30:38'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371336616576 -5.0613160897046)', '2026-07-15 04:31:04', 21.200012207031, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371315829456 -5.0613176822662)'), GeomFromEWKT('SRID=4674;POINT (-36.371336616576 -5.0613160897046)'))) / (select extract(epoch from '2026-07-15 04:31:04'::timestamp) - extract(epoch from '2026-07-15 04:30:54'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371315829456 -5.0613176822662)'), GeomFromEWKT('SRID=4674;POINT (-36.371336616576 -5.0613160897046)'))) / (select extract(epoch from '2026-07-15 04:31:04'::timestamp) - extract(epoch from '2026-07-15 04:30:54'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371353380382 -5.0613200291991)', '2026-07-15 04:31:19', 20.200012207031, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371336616576 -5.0613160897046)'), GeomFromEWKT('SRID=4674;POINT (-36.371353380382 -5.0613200291991)'))) / (select extract(epoch from '2026-07-15 04:31:19'::timestamp) - extract(epoch from '2026-07-15 04:31:04'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371336616576 -5.0613160897046)'), GeomFromEWKT('SRID=4674;POINT (-36.371353380382 -5.0613200291991)'))) / (select extract(epoch from '2026-07-15 04:31:19'::timestamp) - extract(epoch from '2026-07-15 04:31:04'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371352458373 -5.0613162573427)', '2026-07-15 04:31:31', 20, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371353380382 -5.0613200291991)'), GeomFromEWKT('SRID=4674;POINT (-36.371352458373 -5.0613162573427)'))) / (select extract(epoch from '2026-07-15 04:31:31'::timestamp) - extract(epoch from '2026-07-15 04:31:19'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371353380382 -5.0613200291991)'), GeomFromEWKT('SRID=4674;POINT (-36.371352458373 -5.0613162573427)'))) / (select extract(epoch from '2026-07-15 04:31:31'::timestamp) - extract(epoch from '2026-07-15 04:31:19'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371354134753 -5.0613173469901)', '2026-07-15 04:31:42', 20.200012207031, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371352458373 -5.0613162573427)'), GeomFromEWKT('SRID=4674;POINT (-36.371354134753 -5.0613173469901)'))) / (select extract(epoch from '2026-07-15 04:31:42'::timestamp) - extract(epoch from '2026-07-15 04:31:31'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371352458373 -5.0613162573427)'), GeomFromEWKT('SRID=4674;POINT (-36.371354134753 -5.0613173469901)'))) / (select extract(epoch from '2026-07-15 04:31:42'::timestamp) - extract(epoch from '2026-07-15 04:31:31'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.37135438621 -5.0613174308091)', '2026-07-15 04:31:52', 20.200012207031, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371354134753 -5.0613173469901)'), GeomFromEWKT('SRID=4674;POINT (-36.37135438621 -5.0613174308091)'))) / (select extract(epoch from '2026-07-15 04:31:52'::timestamp) - extract(epoch from '2026-07-15 04:31:42'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371354134753 -5.0613173469901)'), GeomFromEWKT('SRID=4674;POINT (-36.37135438621 -5.0613174308091)'))) / (select extract(epoch from '2026-07-15 04:31:52'::timestamp) - extract(epoch from '2026-07-15 04:31:42'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371353799477 -5.0613174308091)', '2026-07-15 04:32:00', 20, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.37135438621 -5.0613174308091)'), GeomFromEWKT('SRID=4674;POINT (-36.371353799477 -5.0613174308091)'))) / (select extract(epoch from '2026-07-15 04:32:00'::timestamp) - extract(epoch from '2026-07-15 04:31:52'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.37135438621 -5.0613174308091)'), GeomFromEWKT('SRID=4674;POINT (-36.371353799477 -5.0613174308091)'))) / (select extract(epoch from '2026-07-15 04:32:00'::timestamp) - extract(epoch from '2026-07-15 04:31:52'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371352290735 -5.0613095518202)', '2026-07-15 04:32:11', 19, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371353799477 -5.0613174308091)'), GeomFromEWKT('SRID=4674;POINT (-36.371352290735 -5.0613095518202)'))) / (select extract(epoch from '2026-07-15 04:32:11'::timestamp) - extract(epoch from '2026-07-15 04:32:00'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371353799477 -5.0613174308091)'), GeomFromEWKT('SRID=4674;POINT (-36.371352290735 -5.0613095518202)'))) / (select extract(epoch from '2026-07-15 04:32:11'::timestamp) - extract(epoch from '2026-07-15 04:32:00'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371351284906 -5.0612982362509)', '2026-07-15 04:32:21', 18.799987792969, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371352290735 -5.0613095518202)'), GeomFromEWKT('SRID=4674;POINT (-36.371351284906 -5.0612982362509)'))) / (select extract(epoch from '2026-07-15 04:32:21'::timestamp) - extract(epoch from '2026-07-15 04:32:11'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371352290735 -5.0613095518202)'), GeomFromEWKT('SRID=4674;POINT (-36.371351284906 -5.0612982362509)'))) / (select extract(epoch from '2026-07-15 04:32:21'::timestamp) - extract(epoch from '2026-07-15 04:32:11'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371353296563 -5.0612882617861)', '2026-07-15 04:32:31', 18, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371351284906 -5.0612982362509)'), GeomFromEWKT('SRID=4674;POINT (-36.371353296563 -5.0612882617861)'))) / (select extract(epoch from '2026-07-15 04:32:31'::timestamp) - extract(epoch from '2026-07-15 04:32:21'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371351284906 -5.0612982362509)'), GeomFromEWKT('SRID=4674;POINT (-36.371353296563 -5.0612882617861)'))) / (select extract(epoch from '2026-07-15 04:32:31'::timestamp) - extract(epoch from '2026-07-15 04:32:21'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
 INSERT INTO registro_rota_ponto (id, cod_registro_rota, geom, dat_registro_ponto, num_elevacao, velocidade, status) 
                VALUES (nextval('registro_rota_ponto_id_seq'), 47679, 'SRID=4674;POINT (-36.371350781992 -5.0612876750529)', '2026-07-15 04:32:35', 18, (SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371353296563 -5.0612882617861)'), GeomFromEWKT('SRID=4674;POINT (-36.371350781992 -5.0612876750529)'))) / (select extract(epoch from '2026-07-15 04:32:35'::timestamp) - extract(epoch from '2026-07-15 04:32:31'::timestamp)),  CASE WHEN ((SELECT ST_DistanceSphere(GeomFromEWKT('SRID=4674;POINT (-36.371353296563 -5.0612882617861)'), GeomFromEWKT('SRID=4674;POINT (-36.371350781992 -5.0612876750529)'))) / (select extract(epoch from '2026-07-15 04:32:35'::timestamp) - extract(epoch from '2026-07-15 04:32:31'::timestamp))) < 1 THEN  'pescando' ELSE 'deslocando' END ); 
COMMIT TRANSACTION;
