def getTripPayload()

in payloadHandler.py [0:0]


    def getTripPayload(self, startTime, startCoords, endCoords, tripId, vin):
        with open(self.trips_payload_location) as f:
            template = json.load(f)
        
        ts = str(self.getTimestampMS())
        template["creationtimestamp"] = ts        
        template["vin"] = vin
        template["tripid"] = tripId
        template["sendtimestamp"] = ts
        
        template["tripsummary"]["endlocation"]["latitude"] = endCoords.x
        template["tripsummary"]["endlocation"]["longitude"] = endCoords.y

        template["tripsummary"]["startlocation"]["latitude"] = startCoords.x
        template["tripsummary"]["startlocation"]["longitude"] = startCoords.y

        template["tripsummary"]["starttime"] = startTime
        return json.dumps(template)