Help with a simple flow

Most nodes can’t distinguish between different inputs, so your switch nodes aren’t going to magically join the input from your GPS/temp to the switch. So what you need to do is use the JOIN node to join the different bits together
There is a very similar flow being discussed in another thread DS18B20 Temperature Driving Wemo Switch

That covers 3 sensors, but effectively you have 4 Latitude,Longitude,Temp and Switch

So the JOIN node will only pass a message on when it gets all 4, take a look at this flow and see if it helps.

[{"id":"93c060e3.4759f","type":"inject","z":"92ad67d1.4157d","name":"GPS","topic":"","payload":"{\"lat\":59.9139, \"lon\":10.7522}","payloadType":"json","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":80,"wires":[["717d599.325ffa8","77f25a9.2daa324","ffd6aebc.a677c8"]]},{"id":"fb08c23c.0f1418","type":"change","z":"92ad67d1.4157d","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"T1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":80,"wires":[["f85b68e1.b6c85"]]},{"id":"f85b68e1.b6c85","type":"join","z":"92ad67d1.4157d","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":630,"y":120,"wires":[["38437991.d9fe5e"]]},{"id":"1c8ee520.d5cb83","type":"change","z":"92ad67d1.4157d","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"T4","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":200,"wires":[["f85b68e1.b6c85"]]},{"id":"93d620f9.b838d","type":"change","z":"92ad67d1.4157d","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"T3","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":160,"wires":[["f85b68e1.b6c85"]]},{"id":"38437991.d9fe5e","type":"change","z":"92ad67d1.4157d","name":"","rules":[{"t":"set","p":"payload.time","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":400,"wires":[["319b15da.4bb632"]]},{"id":"319b15da.4bb632","type":"csv","z":"92ad67d1.4157d","name":"DataOutput","sep":",","hdrin":true,"hdrout":false,"multi":"one","ret":"\\r\\n","temp":"time,T1,T2,T3","skip":0,"x":610,"y":340,"wires":[["7a307090.75ffc8"]],"inputLabels":["msg : string"],"outputLabels":["msg : number"]},{"id":"c2df98ed.e947","type":"inject","z":"92ad67d1.4157d","name":"SWITCH ON","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":280,"wires":[["4dfb699d.2c5678"]]},{"id":"9e3d6007.9f302","type":"inject","z":"92ad67d1.4157d","name":"Temp","topic":"","payload":"23","payloadType":"num","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":200,"wires":[["93d620f9.b838d"]]},{"id":"a3729e39.622758","type":"file","z":"92ad67d1.4157d","name":"log","filename":"/tmp/logs.csv","appendNewline":true,"createDir":true,"overwriteFile":"false","x":775.2712554931641,"y":280.1903648376465,"wires":[]},{"id":"7a307090.75ffc8","type":"debug","z":"92ad67d1.4157d","name":"CSV Debug","active":true,"console":"false","complete":"payload","x":769,"y":225,"wires":[]},{"id":"c00ec1e9.d26e68","type":"inject","z":"92ad67d1.4157d","name":"SWITCH OFF","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":320,"wires":[["4dfb699d.2c5678"]]},{"id":"717d599.325ffa8","type":"debug","z":"92ad67d1.4157d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":270,"y":40,"wires":[]},{"id":"9f35e3ec.ba2928","type":"change","z":"92ad67d1.4157d","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"T2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":120,"wires":[["f85b68e1.b6c85"]]},{"id":"77f25a9.2daa324","type":"change","z":"92ad67d1.4157d","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.lat","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":80,"wires":[["fb08c23c.0f1418"]]},{"id":"ffd6aebc.a677c8","type":"change","z":"92ad67d1.4157d","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.lon","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":120,"wires":[["9f35e3ec.ba2928"]]},{"id":"4dfb699d.2c5678","type":"switch","z":"92ad67d1.4157d","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":280,"y":240,"wires":[["1c8ee520.d5cb83"]]}]

This sounds far more interesting that my summer project in my geology degree which I spent watching mud dry!